blob: 14d7cc8cfe6834f6a6bd96f18261bad9d7174543 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
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
|