PHP Installation and Configuration SSH2 extensions under Windows system?

Source: Internet
Author: User
Title, I now need to use the project to remotely connect to other computer operation instructions. Do not know how to install and configure the SSH2 extension, a master can help me?


Reply to discussion (solution)

Using the Windows version of Php_ssh2.dll

http://windows.php.net/downloads/pecl/releases/ssh2/0.12/

Now there's a new problem, and the action I'm taking now is to invoke the local shell script in PHP, and then place the code in the local script that calls the script in the remote machine. Then I called this local script in PHP, and the local script ran, but the script on the remote machine didn't run. May I ask what is the situation? I didn't use SSH2 on PHP because it was remote with a shell script.

How did you write the script?

Sudo/usr/bin/ssh-f root@10.4.62.241/tmp/test.sh & Echo "test.sh is starting"

echo "Test" >>/tmp/a.txt & Echo "EHLO"

How did you write the script?




Sudo/usr/bin/ssh-f root@10.4.62.241/tmp/test.sh & Echo "test.sh is starting"

echo "Test" >>/tmp/a.txt & Echo "EHLO"

Is this the command under Windows?

Is this the command under Windows?


No, now that you're out of Windows, just use Linux, and the shell script

php5.6 the corresponding version of the SSH2? Directly with the php5.5 will be an error.

  • Related Article

    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.