From 8e0d07a1b06f6a2cc8dcf57fc0a609ca3822b44f Mon Sep 17 00:00:00 2001 From: Frieder Schlesier Date: Tue, 7 Mar 2017 17:30:42 +0100 Subject: [PATCH] add ssh config template --- .ssh/config | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .ssh/config diff --git a/.ssh/config b/.ssh/config new file mode 100644 index 0000000..cc36d42 --- /dev/null +++ b/.ssh/config @@ -0,0 +1,25 @@ +# more secure ssh config +# https://wiki.mozilla.org/Security/Guidelines/OpenSSH +# + +# Ignore SSH keys unless specified in Host subsection +# from https://news.ycombinator.com/item?id=10004678 +IdentitiesOnly yes + +# make known_hosts unreadable +HashKnownHosts yes + +# order HostKeyAlgorithms +HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256 + +KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256 + +MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com + +Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr + + +#Host hostname_alias +# User yourusername +# Hostname +# IdentityFile ~/.ssh/