We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7a199e commit 4b821f5Copy full SHA for 4b821f5
salt/benchmarks/configs/sshd-hardening.conf
@@ -0,0 +1,17 @@
1
+# Forbid any root SSH login
2
+PermitRootLogin no
3
+
4
+# Only allow public key auth for all users
5
+PasswordAuthentication no
6
+KbdInteractiveAuthentication no
7
+ChallengeResponseAuthentication no
8
+PubkeyAuthentication yes
9
10
+# Restrict who can SSH in - allow PSF users and system admins
11
+AllowGroups psf-users sudo admin
12
13
+# Where to read user keys from
14
+AuthorizedKeysFile .ssh/authorized_keys
15
16
+# Keep PAM enabled for account/session modules (e.g., limits)
17
+UsePAM yes
0 commit comments