note 101304 modified in function.ssh2-exec by danbrown
| From: | danbrown@php.net | Date: | Thu, 09 Dec 2010 15:22:02 +0000 |
| Subject: | note 101304 modified in function.ssh2-exec by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174749@lists.php.net to get a copy of this message | ||
It is important to note that this will not work ~all~ hosts that allow SFTP. We deny shell access,
but allow SFTP using the sftp-internal subsystem.
When attempting to use ssh2_exec() with this configuration, and stream_set_blocking set to true, the
script will hang indefinitely. When stream_set_blocking is set to false, nothing will be returned.
Even if you can SFTP files, be sure to check with your host to see if you have shell access.
--was--
It is important to note that this will not work ~all~ hosts that allow SFTP. We deny shell access,
but allow SFTP using the sftp-internal subsystem. A description can be found here: http://www.howtoforge.com/chrooted-ssh-sftp-tutorial-debian-lenny
When attempting to use ssh2_exec() with this configuration, and stream_set_blocking set to true, the
script will hang indefinitely. When stream_set_blocking is set to false, nothing will be returned.
Even if you can SFTP files, be sure to check with your host to see if you have shell access.
http://php.net/manual/en/function.ssh2-exec.php