星期四, 3月 29, 2012

authorized_keys permission on CentOS

The permission of ~/.ssh/authorized_keys must be set to 600 or 640 to let ssh login without password(with key) work.

Because /var/log/secure shows
sshd: Authentication refused: bad ownership or modes for file home/user/.ssh/authorized_keys

沒有留言: