Pass-less ssh auto-login problem

I configured the Linux password-less automatic ssh login as in www.fclose.com/b/linux/1500/enabling-password-less-ssh-login/ . However, it still does not work for me. Any method to check it?

asked Jan 20, 2013 by forum (2,150 points)
edited Feb 7, 2013 by SA

1 Answer

 
Best answer

The log in log

/var/log/secure

may give some clue on it.

For example:

Aug 20 23:16:10 doppler sshd[11143]: Authentication refused: bad ownership or modes for directory /home/useraaa

tells us that the modes for the home directory of useraaa is wrong.

We may set it to 700:

# chmod 700 /home/useraaa
answered Jan 20, 2013 by SA (14,760 points)
edited Feb 7, 2013 by SA
commented Feb 7, 2013 by SA (14,760 points)

For l0sys, don't forget to run "ssh-copy-id portal_host_username@port_host".

commented Mar 28, 2014 by harryxiyou (5,830 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...