From 3ff8396faddc994b180e7836764728cb03d4dc79 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 8 Nov 2016 17:03:03 +0100 Subject: Enforce "Secure Secure Shell" recommendations --- ssh_config | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'ssh_config') diff --git a/ssh_config b/ssh_config index 5cdc3eb..fc3a628 100644 --- a/ssh_config +++ b/ssh_config @@ -20,7 +20,19 @@ # Minimum accepted size of the DH parameter p. By default this is set to 1024 # to maintain compatibility with RFC4419, but should be set higher. # Upstream default is identical to setting this to 2048. -#KexDHMin 1024 +#KexDHMin 4096 + +KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256 +HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa +Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr +MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-ripemd160-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,umac-128@openssh.com + +ChallengeResponseAuthentication no +PasswordAuthentication no +PubkeyAuthentication yes + +UseRoaming no +ForwardX11Trusted no Host * # ForwardAgent no -- cgit v1.2.3