I followed this tutorial and key authentication worked great for root. but when I created user xxx and added different key in authorized_keys and tried to login using putty where error was shown " Server refused our key ". I changed .ssh/authorized_keys to /etc/ssh/keys/authorized_keys with chmod 700 for keys and chomd 600 for authorized_keys as I found some answers on net for this issue. I even tried to swap keys nothing worked! only root is able to login using keys.
In authorized_keys file:
ssh-rsa pub***key rsa-key-20140424 ssh-rsa pub***key rsa-key-20140426
At server log Nothing shown about any authentication accepted or rejected about user xxx.
Putty Event log
2014-04-26 13:28:02 Reading private key file "C:\mykey.ppk" 2014-04-26 13:28:04 Offered public key 2014-04-26 13:28:04 Server refused our key
Server OS : centos 6.5