View previous topic :: View next topic |
Author |
Message |
karneevor n00b


Joined: 10 Dec 2003 Posts: 47 Location: Denmark
|
Posted: Fri Jul 27, 2007 6:29 am Post subject: Passwordless ssh-key still require password [SOLVED] |
|
|
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 |
|
 |
di1bert l33t


Joined: 16 May 2002 Posts: 963 Location: Oslo, Norway
|
Posted: Fri Jul 27, 2007 6:46 am Post subject: |
|
|
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 |
|
 |
|