In an effort to get SSH keys working I'm tailing the sshd authorization log and I see these lines:
debug1: test whether pkalg/pkblob are acceptable debug1: temporarily_use_uid: 10144/10029 (e=0/0) debug1: trying public key file /home/cklein/.ssh/authorized_keys debug1: restore_uid: 0/0 debug1: temporarily_use_uid: 10144/10029 (e=0/0) debug1: trying public key file /home/cklein/.ssh/authorized_keys2 debug1: restore_uid: 0/0 Failed publickey for cklein from 192.168.8.165 port 46583 ssh2
But if I check the
/home/cklein/.ssh/ directory it looks like this:
$ ls -al /home/cklein/.ssh/ total 16 drwx------. 2 cklein infoarch 4096 May 3 16:39 . drwxr-x--x. 9 cklein infoarch 4096 May 3 16:39 .. -rw-------. 1 cklein infoarch 605 May 3 16:39 authorized_keys -rw-r--r--. 1 cklein infoarch 226 Apr 4 16:11 known_hosts
I used to have an
authorized_keys2 file in that directory, but removed it and have since restarted
sshd. Why is it still expecting that file to exist?
Also, do you have any guesses as to why the public key is getting rejected?