Skip to content

Instantly share code, notes, and snippets.

@CoconutMacaroon
Last active April 14, 2022 01:52
Show Gist options
  • Save CoconutMacaroon/62d56a90a49636e70567a3d817fdebdd to your computer and use it in GitHub Desktop.
Save CoconutMacaroon/62d56a90a49636e70567a3d817fdebdd to your computer and use it in GitHub Desktop.
# /etc/ssh/sshd_config
# this is a good SSH config that is secure
# also always use keys, not passwords!
HostKeyAlgorithms ssh-ed25519,rsa-sha2-512,rsa-sha2-256
KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group18-sha512,diffie-hellman-group16-sha512,diffie-hellman-group14-sha256
MACs umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com
PasswordAuthentication no
PermitRootLogin yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment