Re: RE: [PHP-DB] hi (php-SSH)
| From: | bbonkosk at tampabay dot rr dot com | Date: | Tue, 29 Jul 2003 16:40:36 +0000 |
| Subject: | Re: RE: [PHP-DB] hi (php-SSH) | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-29562@lists.php.net to get a copy of this message | ||
I *think* I set this to you yesterday...
http://www.cs.umd.edu/~arun/misc/ssh.html
-Brad
----- Original Message -----
From: Suman Aluru <suman@bacbarcodes.com>
Date: Tuesday, July 29, 2003 12:32 pm
Subject: RE: [PHP-DB] hi (php-SSH)
> could somebody tell me howto Generate the SSH key file to connect SSH
> without password from php
>
> Suman R Aluru
> -----Original Message-----
> From: David Smith [davidsmith@byu.edu]
> Sent: Monday, July 28, 2003 11:19 PM
> To: suman@bacbarcodes.com
> Cc: php-db@lists.php.net
> Subject: Re: [PHP-DB] hi (php-SSH)
>
>
> Suman Aluru wrote:
>
> >hi ,
> > is there any way to write a PHP program for SSH.
> >I want to establish a SSH connection and work some commands in
> the remote
> >system and close the connection.
> >
>
> Yes, just do this (uses an SSH key file):
>
> <?php
> echo "Executing remote command...<br />";
> echo
ssh -i /path/to/key/file user@host ls /tmp;
> echo "Done executing remote command.<br />";
> ?>
>
> Use an SSH key file so you won't have to provide a password. I do this
> all the time for system administration, works great for inter-host
> communication.
>
> --Dave
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>