LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   Problem with ssh and authorized_keys... (http://www.linuxquestions.org/questions/linux-security-4/problem-with-ssh-and-authorized_keys-410453/)

gruell 02-01-2006 12:02 PM

Problem with ssh and authorized_keys...
 
I generated private and public rsa keys and installed my public rsa key on several machines in the .ssh/authorized_keys file. Everything works fine I can ssh to these machines without a pass word, except in on case. There is one account that still asks me for a password when I ssh to it. I have went through the steps of installing my public key several times but to no avail. Is there something I'm missing.

Thanks,

Kirk

Dudydoo 02-01-2006 02:33 PM

Check the logs on both machines, usually in /var/log/secure. You should get some idea of why the key authentication isn't working.

taylor_venable 02-01-2006 03:18 PM

Is it asking for your account password or your key passphrase? Some servers can be configured to require both the public/private keypair and the key's passphrase. Or it may be an order-of-authentication type of thing; for some (configuration) reason, password comes before keypair.

gruell 02-01-2006 03:30 PM

Quote:

Originally Posted by Dudydoo
Check the logs on both machines, usually in /var/log/secure. You should get some idea of why the key authentication isn't working.

Thank you. It turned out to be the users home directory permissions.

Kirk

gruell 02-01-2006 03:31 PM

Quote:

Originally Posted by taylor_venable
Is it asking for your account password or your key passphrase? Some servers can be configured to require both the public/private keypair and the key's passphrase. Or it may be an order-of-authentication type of thing; for some (configuration) reason, password comes before keypair.

It turned out to be the users home directory permissions. Thanks,

Kirk

Dudydoo 02-01-2006 03:40 PM

Great! I was going to suggest that, because that is a common mistake.


All times are GMT -5. The time now is 01:43 PM.