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
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 )
tar -xzf ssh2-0.11.3.tgz
mv ssh2-0.11.3 php-ssh2
echo “extension=ssh2.so” >> /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.shell, 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
Guide to install ssh2 on linux server,