note 21193 rejected from function.exec by didou
| From: | didou@php.net | Date: | Wed, 21 May 2003 16:07:17 +0000 |
| Subject: | note 21193 rejected from function.exec by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48751@lists.php.net to get a copy of this message | ||
Note Submitter: brianw@gdinet.com
----
Has anyone had any luck in getting exec, shell_exec, backticks, system, etc working for opening an
ssh session to and running a command on a remote machine?
I kepp seeing the PHP web server close the session before authentication is complete.
Running the exact same command manually works just fine.
Here's my command:
ssh -l root myserver.mydomain.com /usr/local/pwdchange username newpassword oldpassword
I can run other shell commands just fine.
Thank's
BEW