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:[EMAIL PROTECTED]] 
Sent: 04 May 2002 23:32
To: [EMAIL PROTECTED]
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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to