Skip to content

Commit

Permalink
ignore AllowUsers
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Sjögren <[email protected]>
  • Loading branch information
konstruktoid committed Oct 10, 2023
1 parent 5343f33 commit b600ca4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/hardening.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ systemctl restart sshd
find /etc -name '*.bak' -exec rm -f {} \;

if id vagrant; then
sed -i 's/AllowUsers.*/AllowUsers vagrant/g' /etc/ssh/sshd_config.d/01-hardening.conf
chage --maxdays 365 vagrant
chage --mindays 1 vagrant
fi

0 comments on commit b600ca4

Please sign in to comment.