I'm setting up a server on Linode and following their Securing Your Server guide.
They recommend setting up ssh key pair authentication. I have already uploaded my public key to server and the key pair authentication seems to work fine, but how does it work if the following line is commented out in sshd_config
:
#AuthorizedKeysFile %h/.ssh/authorized_keys
Best Answer
That is the default location. You can use
AuthorizedKeysFile
to change to a different location, but if you don't specify it, then it will look in~/.ssh/authorized_keys
From the man page (e.g., https://www.freebsd.org/cgi/man.cgi?query=sshd_config&sektion=5):