Re: SsH
| From: | David T-G | Date: | Tue, 13 Apr 2004 17:56:00 +0000 |
| Subject: | Re: SsH | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183250@lists.php.net to get a copy of this message | ||
Brent --
..and then Brent Clark said...
%
% Does anybody know if theirs a function or something for php that when I
% click a button it automatically sshes into a box runs a script and then
% exits? Ive seen it been done in java but php would be better.
If you want to connect from the *server* running php to some other box,
just use a system() call (once, of course, you have set up the keys so
that you can pop over with no password). If you want to connect from the
PC running the browser, then you'll at least need an ssh program on your
box, and that java version may have implemented that connection for you.
%
% Kind Regards
% Brent Clark
HTH & HAND
:-D
--
David T-G
davidtg@justpickone.org
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!