As per #200

Bas 2023-08-02 17:51:27 +02:00
parent 84cde3a5b4
commit 4ab9f6938d

@ -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
``` ```