10 lines
166 B
Bash
Executable file
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
|