aboutsummaryrefslogtreecommitdiff
path: root/files/.ssh/config
diff options
context:
space:
mode:
Diffstat (limited to 'files/.ssh/config')
-rw-r--r--files/.ssh/config6
1 files changed, 6 insertions, 0 deletions
diff --git a/files/.ssh/config b/files/.ssh/config
index b474b06..628271e 100644
--- a/files/.ssh/config
+++ b/files/.ssh/config
@@ -15,6 +15,12 @@ SendEnv LANG LC_* TZ
# Automatically add new host keys to the known_hosts file
StrictHostKeyChecking accept-new
+# Hardening based on https://www.ssh-audit.com/hardening_guides.html
+Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
+KexAlgorithms sntrup761x25519-sha512@openssh.com,gss-curve25519-sha256-,curve25519-sha256,curve25519-sha256@libssh.org,gss-group16-sha512-,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256
+MACs hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com
+HostKeyAlgorithms sk-ssh-ed25519-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,ssh-ed25519,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256
+
Host */*
ProxyCommand ssh $(dirname %h) -W $(basename %h):%p
ProxyJump "$(dirname %h)"