debian/sshd.sh

11 lines
162 B
Bash
Raw Normal View History

2025-04-27 01:19:08 +03:00
#!/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