Author: Daniel Baumann Description: Setting AuthorizedKeysFile in sshd_config to /etc/ssh/authorized_keys/%u .ssh/authorized_keys. diff -Naurp openssh.orig/sshd_config openssh/sshd_config --- openssh.orig/sshd_config +++ openssh/sshd_config @@ -43,9 +43,7 @@ PermitRootLogin no #PubkeyAuthentication yes PubkeyAcceptedKeyTypes ssh-ed25519-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-256 - -# Expect .ssh/authorized_keys2 to be disregarded by default in future. -#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2 +AuthorizedKeysFile /etc/ssh/authorized_keys/%u .ssh/authorized_keys #AuthorizedPrincipalsFile none