Guide to install ssh2 on linux server

By the way customers by installing their server ssh2, because their source code should use this protocol to the remote and run commands on another server. So I will write a very detailed installation process you need, you can use.

Understand na ssh is a network protocol, used to establish a network connection between the server (server – to – server ) securely.
Users can safely work without worry because the information users and their data is encrypted on internet safety.

Going to work is installed , on Linux, BSD, and other * nix systems, you follow the steps as below, note is not missing any steps nhé. (here alone installation on OS centos)

1. Install OpenSSL

CentOS: yum install openssl-devel
CentOS(64bit): yum install openssl-devel.x86_64

2 Install libssh2

takes xvfz libssh2-1.4.2.tar.gz
cd libssh2-1.4.2
make install

3. Installing PECL / ssh2

php -i | grep extension_dir

Then cd to the directory where the command on output offline (của mình là /usr/local/lib/php/extensions/no-debug-non-zts-20060613 )

cd /usr/local/lib/php/extensions/no-debug-non-zts-20060613
tar -xzf ssh2-0.11.3.tgz
mv ssh2-0.11.3 php-ssh2
cd php-ssh2/
./configure –with-ssh2
make install
echo “” >> /usr/local/lib/php.ini
service httpd restart

That's it then,you just need to check the results of their efforts so far this money from Simply run thoi.Don :

php -i | grip ssh2

If the results of similar products below the mean while now your effort paid off.

Registered PHP Streams => compress.zlib, dict, ftp, FTPS, gopher, http, https, imap, imaps, pop3, pop3s, rtsp, smtp, SMTPS, telnet, tftp, php, file, data, zip,, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp
libssh2 version => 1.4.2
banner => SSH-2.0-libssh2_1.4.2
PWD => /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php-ssh2
_SERVER[“PWD”] => /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php-ssh2
_ENV[“PWD”] => /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php-ssh2

Chúc các bạn thành công

VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)

Guide to install ssh2 on linux server, 5.0 out of 5 based on 1 rating

  • rotation

    Thanks so much needed today nha.minh