Re: SSH Authentication using php
| From: | Michal Migurski | Date: | Mon, 16 Aug 2004 17:15:31 +0000 |
| Subject: | Re: SSH Authentication using php | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193965@lists.php.net to get a copy of this message | ||
> > 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.
...but you'd still need to provide the ssh passphrase, or have an instance
of ssh-agent running. Teren, what are you trying to do exactly? Is ssh
actually necessary, or are you really just trying to authenticate users by
their unix accounts?
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html