Skip to content

Commit

Permalink
server: Remove FreeBSD-specific differences
Browse files Browse the repository at this point in the history
  • Loading branch information
jlduran committed Nov 16, 2023
1 parent 64eb3f3 commit 39cd138
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

printf "\n# Restrict key exchange, cipher, and MAC algorithms, as per sshaudit.com\n# hardening guide.\nKexAlgorithms [email protected],curve25519-sha256,[email protected],diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256\nCiphers [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr\nMACs [email protected],[email protected],[email protected]\nHostKeyAlgorithms ssh-ed25519,[email protected],[email protected],[email protected],rsa-sha2-512,[email protected],rsa-sha2-256,[email protected]\n" >> /etc/ssh/sshd_config

## Optionally: Remove FreeBSD-specific differences

printf "\n# Remove FreeBSD-specific differences.\nUsePAM no\nUseDNS no\nVersionAddendum none\n" >> /etc/ssh/sshd_config

## Restart sshd and run ssh-audit again, appending output

service sshd restart
Expand Down

0 comments on commit 39cd138

Please sign in to comment.