RE: SSH
| From: | Insomniac Admin | Date: | Sun, 05 May 2002 01:03:00 +0000 |
| Subject: | RE: SSH | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-96094@lists.php.net to get a copy of this message | ||
Hi,
> man ssh
Do that, you'll see there is a -c command, and also read up on using RSA
key authentication, so that the password doesn't have to be entered for
that host.
BE WARNED - if you use RSA key auth, then any process under the login
account you specify it for (it will probably have to be "nobody") will
be able to waltz in without being asked for a password. Biiiiig security
hole.
You could use "popen" to open a ssh process and wait to be asked for the
password etc... Remember to check the RSA key pattern.
- Dan
-----Original Message-----
From: Kyle Gibson [mailto:admin@plaguenet.com]
Sent: 04 May 2002 23:32
To: php-general@lists.php.net
Subject: [PHP] SSH
I am curious as to how I would go about executing SSH command line
operations through PHP. Say for instance the command "ftpwho", which
would return a list of users connected to a FTP server, along with what
they are doing, etc. I've tried to open a socket to my SSH server, along
with the functions system(), shell_exec(), and exec().
Thanks,
Kyle Gibson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php