hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : VPS Tutorials : how to install SSH2 on CentOS 5 64bit XEN VPS ?
Reply

VPS Tutorials Tutorials related to VPS.
Forum Jump

how to install SSH2 on CentOS 5 64bit XEN VPS ?

Reply Post New Thread In VPS Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-04-2012, 01:10 PM
DevilCrab DevilCrab is offline
Junior Guru Wannabe
 
Join Date: Apr 2011
Posts: 66
Exclamation

how to install SSH2 on CentOS 5 64bit XEN VPS ?


hey guys can u help me up installing SSH2-PHP extension on CentOS 5 64bit , i am tired searching for working tutorials.. but no one work for me..

can anyone here help me quick to get this solved out.


Reply With Quote


Sponsored Links
  #2  
Old 03-04-2012, 11:57 PM
hostingxchange hostingxchange is offline
Junior Guru Wannabe
 
Join Date: Oct 2007
Location: Central Indiana
Posts: 75
You can't just do a simple yum install, but it doesn't look all that bad. Most managed hosting providers will do this sort of thing for you. Have you opened a ticket with your host?

Reply With Quote
  #3  
Old 03-05-2012, 01:07 AM
ultimatewebhost ultimatewebhost is offline
Aspiring Evangelist
 
Join Date: Aug 2011
Location: India
Posts: 444
Any of the following commands and you'll be fine;

yum install libssh2-devel

OR

pecl install ssh2-beta

Then DO;

echo extension=ssh2.so >> /etc/php.ini

Now, you can restart your web server, and check a phpinfo page to verify the installation!

Make sure you perform these commands as root.

Reply With Quote
Sponsored Links
  #4  
Old 03-05-2012, 10:48 AM
DevilCrab DevilCrab is offline
Junior Guru Wannabe
 
Join Date: Apr 2011
Posts: 66
Quote:
Originally Posted by hostingxchange View Post
You can't just do a simple yum install, but it doesn't look all that bad. Most managed hosting providers will do this sort of thing for you. Have you opened a ticket with your host?


i can't do that as its a unmanaged VPS.

Reply With Quote
  #5  
Old 03-05-2012, 11:03 AM
krizag krizag is offline
Web Hosting Guru
 
Join Date: May 2009
Posts: 274
Download libssh2 from http://www.libssh2.org/snapshots/lib…0091001.tar.gz

tar -zxvf libssh.x.x.tar.gz

./configure

make all install

Download the pecl-ssh2 installer from http://pecl.php.net/get/ssh2-0.10.tgz

tar -zxvf ssh2-0.11.0.tgz
cd ssh2-0.11.0
phpize

./configure –with-ssh2

make

Copy ssh2.so to your extension_dir specified in php.ini.

grep extension_dir /usr/local/Zend/etc/php.ini
cp modules/ssh2.so /path/to/extension/dir

Then add the extension to your php.ini:
extension=ssh2.so

Reply With Quote
  #6  
Old 03-05-2012, 11:11 AM
DevilCrab DevilCrab is offline
Junior Guru Wannabe
 
Join Date: Apr 2011
Posts: 66
Quote:
Originally Posted by ultimatewebhost View Post
Any of the following commands and you'll be fine;

yum install libssh2-devel

OR

pecl install ssh2-beta

Then DO;

echo extension=ssh2.so >> /etc/php.ini

Now, you can restart your web server, and check a phpinfo page to verify the installation!

Make sure you perform these commands as root.


oh wow awesome i think this work i just used this-

php -i to check whether its done or not..

i get this-

--------------
ssh2

SSH2 support => enabled
extension version => 0.11.3-dev
libssh2 version => 1.2
banner => SSH-2.0-libssh2_1.2
remote forwarding => enabled
hostbased auth => enabled
polling support => enabled
publickey subsystem => enabled
--------------

if this is proof its working then i am happy then all

Reply With Quote
  #7  
Old 03-05-2012, 11:12 AM
krizag krizag is offline
Web Hosting Guru
 
Join Date: May 2009
Posts: 274
Yea, it is working.

Reply With Quote
  #8  
Old 03-05-2012, 11:43 AM
DevilCrab DevilCrab is offline
Junior Guru Wannabe
 
Join Date: Apr 2011
Posts: 66
wow thanks ! its solved now

Reply With Quote
  #9  
Old 03-12-2012, 02:48 AM
DevilCrab DevilCrab is offline
Junior Guru Wannabe
 
Join Date: Apr 2011
Posts: 66
its not working for dedi servers, can anyone help me for dedi servers with centOS 5 ???

Reply With Quote
  #10  
Old 03-12-2012, 02:56 PM
krizag krizag is offline
Web Hosting Guru
 
Join Date: May 2009
Posts: 274
Its the same step for dedicated servers too. Is ssh2 showing in phpinfo page?

Reply With Quote
  #11  
Old 03-12-2012, 03:12 PM
DevilCrab DevilCrab is offline
Junior Guru Wannabe
 
Join Date: Apr 2011
Posts: 66
no its not showing.. :\


i tried that..

Reply With Quote
  #12  
Old 03-12-2012, 03:19 PM
krizag krizag is offline
Web Hosting Guru
 
Join Date: May 2009
Posts: 274
what does

php -i | grep ssh

gives as output?

Reply With Quote
  #13  
Old 03-19-2012, 09:26 PM
liable liable is offline
New Member
 
Join Date: Mar 2012
Posts: 0
I am looking for a similar Tutorial on this.

I am wanting to take a simple VPS and use it as a HUB. To hub multiple VPS servers, so i can utilize all of the VPS's at once.

Only problem is I know the in's and out's of the process, but not the actually installation process.

If someone could write up a TuT on how to carry out this process that would be awesome.

Regard's

Reply With Quote
  #14  
Old 05-17-2012, 12:15 AM
Carbon Host Carbon Host is offline
Newbie
 
Join Date: Nov 2011
Posts: 12
Quote:
Originally Posted by ultimatewebhost View Post
Any of the following commands and you'll be fine;

yum install libssh2-devel

OR

pecl install ssh2-beta

Then DO;

echo extension=ssh2.so >> /etc/php.ini

Now, you can restart your web server, and check a phpinfo page to verify the installation!

Make sure you perform these commands as root.
Thanks! Worked for me

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
XEN with CentOS 6 64bit ? WebHostDog Hosting Security and Technology 11 01-11-2012 07:45 AM
Issues with centos 6.x 64bit and LAMP during install or after, Any ? ckissi Dedicated Server 3 09-22-2011 10:36 AM
small job - Help install Centos 64bit TinyVox Employment / Job Offers 3 10-23-2010 10:00 PM
centos 5.4 64bit (xen-hypervm) templates - link pls hamidcool57 VPS Hosting 6 01-17-2010 12:15 PM
Centos 3.5 64bit vs Centos 4.1 64bit defferent results! Soulwatcher1974 Hosting Security and Technology 2 09-05-2005 11:12 AM

Related posts from TheWhir.com
Title Type Date Posted
Solar VPS Becomes Official Mirror for Centos and Ubuntu Web Hosting News 2013-04-16 11:03:34
Web Host Rackspace Adds FreeBSD 9, CentOS 6.3 Support to Cloud Servers Web Hosting News 2012-07-30 12:47:10
Web Host ServerPronto Donates Hosting Resources to CentOS Web Hosting News 2012-07-05 14:06:27
Web Host A2 Hosting Launches Customizable VPS Hosting Plans Web Hosting News 2012-06-07 15:11:57
Web Host NetHosting Announces Support for CentOS 6 Web Hosting News 2011-07-05 20:15:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?