Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Passwordless ssh-key still require password [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
karneevor
n00b
n00b


Joined: 10 Dec 2003
Posts: 47
Location: Denmark

PostPosted: Fri Jul 27, 2007 6:29 am    Post subject: Passwordless ssh-key still require password [SOLVED] Reply with quote

Hi there.

I've set up 4 ssh servers and distributed my own and some other public key to all the "authorized_keys" files on those 4 servers with a script. Those 4 servers have the same ssh server setup.

The first server still requires a password for only me while the other 3 servers does not require a password. The other users does not need to enter a password on any of the 4 servers.

I've distributed the public key both from a script and entered it manually. Still the same result.

Does anyone have a clue?

SOLUTION:
Make absolutely sure that file permissions are correct on your homedir, .ssh dir, keyfiles on both your local and remote host. Set permissions to the user only and no permissions to groups or other.

A script I wrote changed the permissions without my knowing, and it took almost a day to track down the problem. :(
_________________
Kind regards.

Karneevor
Denmark

"I'm really not interested in public opinion polls on my tactical decisions" - Admiral Tolwyn


Last edited by karneevor on Fri Jul 27, 2007 7:41 am; edited 1 time in total
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Fri Jul 27, 2007 6:46 am    Post subject: Reply with quote

You can start by checking the /etc/ssh/sshd_config file to ensure that
public key authentication (PubkeyAuthentication yes) is enabled. Perhaps
there was an update to Openssh that over wrote an existing config file...

HTH

-m
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum