debian/scripts/sshd.sh

11 lines
166 B
Bash
Raw Permalink Normal View History

2025-04-27 01:19:08 +03:00
#!/bin/bash
set -euo pipefail
2025-04-27 16:38:54 +03:00
# TODO: 'sed' automate the usual hardenings
2025-04-27 01:19:08 +03:00
sudo vim /etc/ssh/sshd_config
if ! sudo sshd -t; then
sudo systemctl restart sshd
fi