Category: Linux

How to install SSH_connect on Centos 5.5

yum install libssh libssh-devel php-pear php-devel gcc


cd /usr/src
wget http://www.libssh2.org/download/libssh2-1.3.0.tar.gz
tar -zxvf libssh2-1.3.0.tar.gz
cd libssh2-1.3.0
./configure
make all install
pecl install ssh2 channel://pecl.php.net/ssh2-0.11.2

#Add extension=ssh2.so to php.ini
vi /etc/php.ini
service httpd restart

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count: