summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2023-01-16 21:15:04 -0800
committerMike Crute <mike@crute.us>2023-01-16 21:20:57 -0800
commit79c5945831e6bd184233ee8e2f664e4b61857a9a (patch)
tree5c672669bba8f19950af6a2466246060d92ea603
parente2918a02fe2dc306beb4183aa1c5eaf42252ed7e (diff)
downloaddotfiles-79c5945831e6bd184233ee8e2f664e4b61857a9a.tar.bz2
dotfiles-79c5945831e6bd184233ee8e2f664e4b61857a9a.tar.xz
dotfiles-79c5945831e6bd184233ee8e2f664e4b61857a9a.zip
Cleanup ssh config
-rw-r--r--.ssh/config49
-rw-r--r--.ssh/id_rsa.home.pub1
2 files changed, 22 insertions, 28 deletions
diff --git a/.ssh/config b/.ssh/config
index 4c6428c..c786305 100644
--- a/.ssh/config
+++ b/.ssh/config
@@ -1,48 +1,41 @@
1# vim:ft=sshconfig: 1# vim:ft=sshconfig:
2 2
3VerifyHostKeyDNS yes
4ServerAliveInterval 60 3ServerAliveInterval 60
5ConnectTimeout 10 4ConnectTimeout 10
6ConnectionAttempts 10 5ConnectionAttempts 10
7HashKnownHosts yes 6HashKnownHosts yes
8 7
9# Allow SSH-RSA keys for now 8# Don't offer all agent identities to each host. Requires a matching
9# Host with one or more IdentityFile options specified. These can be
10# a private key or a public key that the agent holds.
11IdentitiesOnly yes
12
13# Allow SSH-RSA keys for now since so many things (especially network
14# and datacenter gear) still want them and Fedora has disabled them by
15# default.
10PubkeyAcceptedKeyTypes +ssh-rsa 16PubkeyAcceptedKeyTypes +ssh-rsa
17HostKeyAlgorithms +ssh-rsa
18
19# Would be nice to one day publish public keys in DNS, but for now this
20# just slows down connections and most hosts aren't published.
21#VerifyHostKeyDNS yes
11 22
12Host *.crute.me, !code.crute.me, mcrute-virt 23Host !code.crute.me !code.crute.us *.crute.me mcrute-virt
13 User mcrute 24 User mcrute
14 ForwardAgent yes 25 ForwardAgent yes
15 DynamicForward 9999 26 DynamicForward 9999
27 IdentityFile ~/.ssh/id_rsa.home.pub
16 # Tab Opener 28 # Tab Opener
17 RemoteForward *:1424 localhost:1424 29 RemoteForward *:1424 localhost:1424
18 # Music Ports 30 # Music Ports
19 RemoteForward 1234 localhost:1234 31 RemoteForward 1234 localhost:1234
20 RemoteForward 1235 localhost:1235 32 RemoteForward 1235 localhost:1235
21 33
22Host mcrute-virt.sea1.crute.me 34Host code.crute.me code.crute.us
23 User mcrute 35 IdentityFile ~/.ssh/id_rsa.home.pub
24 ForwardAgent yes
25 DynamicForward 9999
26 # Tab Opener
27 RemoteForward *:1424 localhost:1424
28
29Host mcrute-virt.eu-west-2.crute.me
30 User mcrute
31 ForwardAgent yes
32 DynamicForward 9999
33 # Tab Opener
34 RemoteForward *:1424 localhost:1424
35
36Host mcrute-virt.ext.eu-west-2.crute.me
37 Hostname 172.16.75r28
38 User mcrute
39 ForwardAgent yes
40 ProxyCommand ssh -p 4321 -W %h:%p vpn-1.ext.eu-west-2.crute.me
41 36
42Host git-codecommit.*.amazonaws.com 37Host github.com
43 User APKAJUVKIAJDACBHNR2Q 38 IdentityFile ~/.ssh/id_rsa.home.pub
44 IdentityFile ~/.ssh/id_rsa.home
45 39
46Host ext.code.crute.me 40Host gitlab.alpinelinux.org
47 Hostname code.crute.me 41 IdentityFile ~/.ssh/id_rsa.home.pub
48 ProxyCommand ssh -F ~/.ssh/home -p 4321 -W %h:%p gateway-1.us-west-2.crute.me
diff --git a/.ssh/id_rsa.home.pub b/.ssh/id_rsa.home.pub
new file mode 100644
index 0000000..ebb3d82
--- /dev/null
+++ b/.ssh/id_rsa.home.pub
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCiNw8DoEsevMj7UhtcAqaCmO9h+baMkbiE3KJsi5iZWVAlqRZIgYisBGfmOdrkt0N3yKG9Gqg/DEEw4PWWul+k/O+zkWd/jVvaqVNyQnoNOdPAa3oGr39agMd30bOrYtHP3Lzaajn3cwaT7E+F05lw0+IIXV1TwSa0GzxqAYq+2raSXQsQWkzVFsU+DuxgBE9F2ieqOw6rvxdT/cVjnBZD/zmj6WnwM7qgylPvt9AOtsvq6MYoMOwOK41ilG8M2Cay/NXAr+o1g2y+cBt4s5YVzkxQ6Lub9Gusj0QgolQ5wJj7W+GqfzY5kndDOIuaiLDk3mI9/kAB8Ws0PYOhXTP/ /home/mcrute/.ssh/id_rsa.home