On 23/08/2011, at 10:00 AM, [email protected] wrote:

>> I've come across an interesting "feature" on the later Ubuntu's - ssh
>> key-based authentication to a target box doesn't appear to work, unless
>> I've logged onto the target box through the GUI (X).
> 
> Guessing here, hopefully a guess which starts you on the path to an
> answer.
> 
> 1) I'd use ls -l to check the contents and permissions of
> /home/sonia/.ssh/authorized_keys
> you want
> sonia:sonia -rw-------
> 
> You might want to look in /var/log/daemon.log on the target for the
> messages from the ssh server.
> 
> 2) When you log into GNOME that starts gnome-keyring-daemon. This
> implements ssh-agent but looks into the GNOME keystores (which includes,
> but is not limited to, ~/.ssh).  I do wonder if the ssh keys being used
> by gnome-keyring-daemon and the ssh keys in ~/.ssh/id_* might be
> different??? You might want to compare the fingerprints which are output
> in ssh -v and in the system log. Maybe command line ssh and
> gnome-keyring-agent are simply offering differing keys, only one of
> which works.

I'm certain this is 'other thingz' not ssh. I use it many times every day 
without any issue, to 10.04, 10.10 and 11.04 as well as centos and suse, from 
all the above.

But I go to great length to get rid of asinine stuff like the keyring where I'm 
led to the one-true-way.

James--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to