I have the following setup on an Ubuntu machine:
~/dotfiles/authorized_keys2
~/.ssh/authorized_keys2 -> /home/wayne/dotfiles/authorized_keys2
I had the same setup on my Arch machine, but when I connect with -v,
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/wayne/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
I found this page on the Arch Wiki, which has this line:
$ chmod 600 ~/.ssh/authorized_keys
So I added another symlink:
authorized_keys -> /home/wayne/dotfiles/authorized_keys2
And yet still, no dice. And yes, I have ensured that the correct key is present in authorized_keys
.
Why can I not connect using my keys?
Edit:
My permissions are set correctly on my home and ssh folders (and key file):
drwxr-x--x 150 wayne family 13k Aug 27 07:38 wayne/
drwx------ 2 wayne family 4.1k Aug 27 07:24 .ssh/
-rw------- 1 wayne family 6.4k Aug 20 07:01 authorized_keys2
/etc/
... in thepam
folder maybe? that might be wrong. some conf,though. – mikeserv Aug 27 '14 at 12:51AuthorizedKeysFile .ssh/authorized_keys
, @unR – Wayne Werner Aug 27 '14 at 13:49PubkeyAuthentication yes
is commented out... though manpage says yes is the default and uncommenting that seems to have no effect – Wayne Werner Aug 27 '14 at 13:49%h/.ssh/authorized_keys
, still no dice. – Wayne Werner Aug 27 '14 at 13:59rm authorized_keys && cp authorized_keys2 authorized_keys
all is well. – Wayne Werner Aug 27 '14 at 14:00/home/wayne
your home directory? If you can access the system logs on the server, is there anything about AppArmor or anything else from sshd? What are the permissions on/home/wayne/dotfiles
and/home/wayne/dotfiles/authorized_keys2
? – Gilles 'SO- stop being evil' Aug 27 '14 at 23:01~/.ssh
, but since you've symlinked the file from another directory, the permissions for that other directory matter as well. – Gilles 'SO- stop being evil' Aug 28 '14 at 11:22