Init
This commit is contained in:
commit
58328a42d5
6 changed files with 89 additions and 0 deletions
10
sshd.sh
Executable file
10
sshd.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue