mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-23 01:21:07 +01:00
Make sure /etc/ssh/sshd_config.d/
exists before adding a config file to it.
parent
88d7b0ece7
commit
5faa34e4a4
@ -19,6 +19,7 @@ mv /etc/ssh/moduli.safe /etc/ssh/moduli
|
|||||||
```
|
```
|
||||||
4. Restrict supported key exchange, cipher, and MAC algorithms
|
4. Restrict supported key exchange, cipher, and MAC algorithms
|
||||||
```bash
|
```bash
|
||||||
|
[ -d /etc/ssh/sshd_config.d ] || /bin/mkdir etc/ssh/sshd_config.d
|
||||||
echo '
|
echo '
|
||||||
# Restrict key exchange, cipher, and MAC algorithms, as per sshaudit.com
|
# Restrict key exchange, cipher, and MAC algorithms, as per sshaudit.com
|
||||||
# hardening guide.
|
# hardening guide.
|
||||||
|
Loading…
Reference in New Issue
Block a user