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 sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256\nCiphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr\nMACs hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com\nHostKeyAlgorithms ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-256-cert-v01@openssh.com\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.