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.