Skip to content

Commit 4b821f5

Browse files
committed
source the hardening conf + add psf-users to AllowGrops
1 parent a7a199e commit 4b821f5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)