Re: SSH Authentication using php
| From: | Robby Russell | Date: | Mon, 16 Aug 2004 16:45:15 +0000 |
| Subject: | Re: SSH Authentication using php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193960@lists.php.net to get a copy of this message | ||
On Mon, 2004-08-16 at 08:39, Teren wrote:
> Hi, what my goal is is to be able to authenticate a user by they SSH acount on the system using
> php. I tried looking on google, but didn't see anything with ssh. What i've tried to do is
> use the exec() and just do:
>
> exec("ssh user@localhost".escapleshellard("password"));
>
You can try setting up authorized_keys for this. Then you don't need to
pass it the password.
-Robby
--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby@planetargon.com
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
****************************************/
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc