mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-23 09:29:50 +01:00
Updated macOS 13 (Ventura) & 14 (Sonoma) (markdown)
parent
e19b119cfc
commit
b0b6a70163
@ -13,8 +13,7 @@ ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
|
|||||||
awk '$5 >= 3071' /etc/ssh/moduli > /etc/ssh/moduli.safe
|
awk '$5 >= 3071' /etc/ssh/moduli > /etc/ssh/moduli.safe
|
||||||
mv /etc/ssh/moduli.safe /etc/ssh/moduli
|
mv /etc/ssh/moduli.safe /etc/ssh/moduli
|
||||||
```
|
```
|
||||||
3. Enable the RSA and ED25519 keys
|
3. 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 .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_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
|
sed -i .orig 's/^\#HostKey \/etc\/ssh\/ssh_host_ed25519_key/HostKey \/etc\/ssh\/ssh_host_ed25519_key/' /etc/ssh/sshd_config
|
||||||
|
Loading…
Reference in New Issue
Block a user