SSH2 extended installation and basic Operation Linux System learning

Source: Internet
Author: User

in the Linux Serverdeployment in the environmentSSH2extension to compilePHPin the fileSSHscript commands, the specific configuration method is as follows, if it is in a formal environment to run directly, it is recommended to do backup.

1. Installing the supported library files

command: Yum Install php-devel php-pear libssh2 libssh2-devel

2. build ssh2 Extensions

command: pecl install-f ssh2

After that, the installed log will be displayed, and you will need to press ENTER directly when selecting.

3. After the installation is successful, you need to modify Ssh2.ini

[Email protected] etc]# Touch/etc/php.d/ssh2.ini

[Email protected] etc]# echo extension=ssh2.so >/etc/php.d/ssh2.ini

can be used Vim Open /etc/php.d/ssh2.ini confirm that you have included extension=ssh2.so

4. Verify that the installation is successful

php-m | grep SSH2

Show SSH2 indicates that the installation was successful


SSH2 extended installation and basic Operation Linux System learning

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.