aboutsummaryrefslogtreecommitdiff
path: root/files/.ssh
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2024-01-24 22:22:28 +0500
committerAnton Bobov <anton@bobov.name>2024-01-24 22:22:28 +0500
commitae54fa12ce8c4eb8a70fb80da58709ea8bec1f7b (patch)
tree797a2bf8963cdc6cfe272055478f578d921eac83 /files/.ssh
parent68345bba734317cb08f6741b7db404f80bf57d35 (diff)
Updates
Diffstat (limited to 'files/.ssh')
-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)"