This commit is contained in:
Lauri Räsänen 2025-04-27 01:19:08 +03:00
commit 58328a42d5
6 changed files with 89 additions and 0 deletions

10
sshd.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
set -euo pipefail
# TODO: just 'sed' the usual hardenings
sudo vim /etc/ssh/sshd_config
if ! sudo sshd -t; then
sudo systemctl restart sshd
fi