debian/scripts/sshd.sh
2025-04-27 16:38:54 +03:00

10 lines
166 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
# TODO: 'sed' automate the usual hardenings
sudo vim /etc/ssh/sshd_config
if ! sudo sshd -t; then
sudo systemctl restart sshd
fi