Skip to content

Commit

Permalink
Merge pull request #114 from konstruktoid/sh
Browse files Browse the repository at this point in the history
ignore AllowUsers
  • Loading branch information
konstruktoid committed Oct 10, 2023
2 parents 5343f33 + b600ca4 commit 2d47743
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 2d47743

Please sign in to comment.