From 81f45a1fc5a155d0019973a9f1c5486270a09a62 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Thu, 26 Jul 2018 19:40:50 +1200 Subject: [PATCH] refactor(ssh): remove specific ssh information --- .gitignore | 2 ++ ssh/.ssh/config | 32 ++------------------------------ 2 files changed, 4 insertions(+), 30 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f868146 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# hide specific ssh information +ssh/.ssh/config.d diff --git a/ssh/.ssh/config b/ssh/.ssh/config index f67ffdd..aa43c3e 100644 --- a/ssh/.ssh/config +++ b/ssh/.ssh/config @@ -1,5 +1,6 @@ # Ensure KnownHosts are unreadable if leaked - it is otherwise easier to know which hosts your keys have access to. HashKnownHosts yes + # Host keys the client accepts - order here is honored by OpenSSH 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 @@ -7,33 +8,4 @@ KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp256 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 * - UseRoaming no - IdentitiesOnly yes - Compression yes - -Host server.tld - HostName server.tld - Port port - User user - IdentityFile /path/to/ssh/key - -Host aur.archlinux.org - HostName aur.archlinux.org - User aur - IdentityFile /path/to/ssh/key - -Host bitbucket.org - User git - HostName bitbucket.org - IdentityFile /path/to/ssh/key - -Host github.com gist.github.com - User git - HostName github.com - IdentityFile /path/to/ssh/key - -Host gitlab.com - User username - HostName gitlab.com - IdentityFile /path/to/ssh/key +Include ~/.ssh/config.d/*