10 lines
162 B
Bash
Executable file
10 lines
162 B
Bash
Executable file
#!/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
|