mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-23 01:21:07 +01:00
As per #200
parent
84cde3a5b4
commit
4ab9f6938d
3
macOS.md
3
macOS.md
@ -16,7 +16,8 @@ mv /etc/ssh/moduli.safe /etc/ssh/moduli
|
|||||||
3. Enable the RSA and ED25519 keys
|
3. Enable the RSA and ED25519 keys
|
||||||
Enable the RSA and ED25519 HostKey directives in the /etc/ssh/sshd_config file:
|
Enable the RSA and ED25519 HostKey directives in the /etc/ssh/sshd_config file:
|
||||||
```
|
```
|
||||||
sed -i 's/^\#HostKey \/etc\/ssh\/ssh_host_\(rsa\|ed25519\)_key$/HostKey \/etc\/ssh\/ssh_host_\1_key/g' /etc/ssh/sshd_config
|
sed -i .orig 's/^\#HostKey \/etc\/ssh\/ssh_host_rsa_key/HostKey \/etc\/ssh\/ssh_host_rsa_key/' /etc/ssh/sshd_config
|
||||||
|
sed -i .orig 's/^\#HostKey \/etc\/ssh\/ssh_host_ed25519_key/HostKey \/etc\/ssh\/ssh_host_ed25519_key/' /etc/ssh/sshd_config
|
||||||
```
|
```
|
||||||
4. Restrict supported key exchange, cipher, and MAC algorithms
|
4. Restrict supported key exchange, cipher, and MAC algorithms
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user