SSH Not Accepting Public Key
I've just had a case where SELinux prevented sshd from reading the /root/.ssh/authorized_keys file. /var/log/messages will show you that the sshd process was denied access for read operation on the authorized_keys file.
After I ran restorecon -v /root/.ssh/authorized_keys
, SSH with the public-key worked fine.
Changing StrictModes to "no" in /etc/ssh/sshd_config
worked for me.
sysadmin@suselinux1:~> con sysadmin kaiser
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-25-generic i686)
* Documentation: https://help.ubuntu.com/
Last login: Fri Nov 9 15:40:11 2012 from 10.1.3.25
sysadmin@kaiser:~$ date
vie nov 9 17:53:11 CST 2012
sysadmin@kaiser:~$