ssh2 login with public key - not working
youshi10 at u.washington.edu
youshi10 at u.washington.edu
Thu Aug 30 10:16:44 PDT 2007
On Thu, 30 Aug 2007, Adam J Richardson wrote:
> Laszlo Nagy wrote:
>> Well, I have other users using public keys for logging in so the sshd config
>> must be correct.
>> This is the only user that doesn't work. I can login by typing in the
>> password but I need to login automatically.
>>
>> Best,
>>
>> Laszlo
>
> Well, then perhaps the user is wrongly configured. IIRC, you need to have the
> file ~/.ssh/authorized_users with your public key in it, so sshd can match it
> to the private key when you log in.
>
> If the file's there on the server, perhaps the client end is misconfigured.
> Apparently there's no way to feed the key to SSH via command line, you have to
> be using some sort of key agent. Which is highly annoying IMO, but then you can
> always use PuTTY instead of ssh.
>
> HtH,
> Adam J Richardson
Try using ssh -vv to root-cause the issue. ssh's pretty good about telling you what's wrong with a config.
-Garrett
More information about the freebsd-questions
mailing list