Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2007 10:16:14 -0700 (PDT)
From:      youshi10@u.washington.edu
To:        freebsd-questions@freebsd.org
Subject:   Re: ssh2 login with public key - not working
Message-ID:  <Pine.LNX.4.43.0708301016140.22678@hymn08.u.washington.edu>
In-Reply-To: <46D6F8D8.7000901@crackmonkey.us>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.43.0708301016140.22678>