Skip to content

Instantly share code, notes, and snippets.

@QuantumGhost
Last active August 6, 2017 13:34
Show Gist options
  • Save QuantumGhost/38830f9a5ff5eaf37bccbf2fdb35caee to your computer and use it in GitHub Desktop.
Save QuantumGhost/38830f9a5ff5eaf37bccbf2fdb35caee to your computer and use it in GitHub Desktop.
Hardened ssh
# Github already dropped support for diffie-hellman-group1-sha1 and diffie-hellman-group14-sha1
# FYI: https://githubengineering.com/crypto-deprecation-notice/
# Host github.com
# KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
Host *
KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256
PasswordAuthentication no # comment this if you need password authentication (for example ssh into a VM)
ChallengeResponseAuthentication no
PubkeyAuthentication yes
HostKeyAlgorithms [email protected],[email protected],ssh-ed25519,ssh-rsa
Ciphers [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr
MACs [email protected],[email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,[email protected]
KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256
Ciphers [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr
MACs [email protected],[email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,[email protected]
@QuantumGhost
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment