Mercurial > index.cgi > dotfiles
annotate .ssh/config @ 192:2dc3fbf65094
New aliases for "forcing" connections via ssh
author | Steve Huston <huston@astro.princeton.edu> |
---|---|
date | Mon, 21 Sep 2020 15:19:55 -0400 |
parents | f5969673c794 |
children | 8206a14c8c62 |
rev | line source |
---|---|
158
d8596a04bdb1
Updating floyd config
Steve Huston <huston@astro.princeton.edu>
parents:
131
diff
changeset
|
1 # Turn things off for floyd - it doesn't need them |
d8596a04bdb1
Updating floyd config
Steve Huston <huston@astro.princeton.edu>
parents:
131
diff
changeset
|
2 Host floyd-mgmt floyd-mgmt.astro.internal |
46
82999776304f
* Added config for Floyd to prevent errors
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
38
diff
changeset
|
3 ForwardAgent no |
82999776304f
* Added config for Floyd to prevent errors
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
38
diff
changeset
|
4 ForwardX11 no |
82999776304f
* Added config for Floyd to prevent errors
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
38
diff
changeset
|
5 ForwardX11Trusted no |
82999776304f
* Added config for Floyd to prevent errors
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
38
diff
changeset
|
6 |
186
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
7 # Let's try a proxy connection here |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
8 Host xanadu.astro.princeton.edu |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
9 User huston |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
10 ControlMaster auto |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
11 ControlPersist yes |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
12 ControlPath ~/.ssh/sockets/%C |
190
f5969673c794
A couple keepalive type config settings
Steve Huston <huston@srhuston.net>
parents:
186
diff
changeset
|
13 ServerAliveInterval 30 |
f5969673c794
A couple keepalive type config settings
Steve Huston <huston@srhuston.net>
parents:
186
diff
changeset
|
14 # This is the default, putting here to document |
f5969673c794
A couple keepalive type config settings
Steve Huston <huston@srhuston.net>
parents:
186
diff
changeset
|
15 ServerAliveCountMax 3 |
186
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
16 |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
17 Match host csesbh2.princeton.edu exec "~/.ssh/onsubnet --not 128.112." |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
18 ProxyJump xanadu.astro.princeton.edu |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
19 |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
20 Host csesbh2.princeton.edu |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
21 User huston |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
22 ControlMaster auto |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
23 ControlPersist yes |
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
24 ControlPath ~/.ssh/sockets/%C |
190
f5969673c794
A couple keepalive type config settings
Steve Huston <huston@srhuston.net>
parents:
186
diff
changeset
|
25 ServerAliveInterval 30 |
f5969673c794
A couple keepalive type config settings
Steve Huston <huston@srhuston.net>
parents:
186
diff
changeset
|
26 # This is the default, putting here to document |
f5969673c794
A couple keepalive type config settings
Steve Huston <huston@srhuston.net>
parents:
186
diff
changeset
|
27 ServerAliveCountMax 3 |
186
83f164405755
New 'onsubnet' command, new config for master controls
Steve Huston <huston@astro.princeton.edu>
parents:
158
diff
changeset
|
28 |
89
103f26c9f9f7
Added syrinx to less-than-strict test
Steve Huston <huston@astro.princeton.edu>
parents:
59
diff
changeset
|
29 # xanadu-vm and syrinx's keys change, let's try to avoid errors |
103f26c9f9f7
Added syrinx to less-than-strict test
Steve Huston <huston@astro.princeton.edu>
parents:
59
diff
changeset
|
30 Host xanadu-vm syrinx xanadu-vm.astro.princeton.edu syrinx.astro.princeton.edu |
105
3f1ead4ba8b4
Changes for the Pi:
Steve Huston <huston@astro.princeton.edu>
parents:
89
diff
changeset
|
31 User huston |
57
bb24419b885f
* Change for xanadu-vm's ssh config entry
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
46
diff
changeset
|
32 StrictHostKeyChecking no |
bb24419b885f
* Change for xanadu-vm's ssh config entry
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
46
diff
changeset
|
33 ForwardAgent yes |
bb24419b885f
* Change for xanadu-vm's ssh config entry
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
46
diff
changeset
|
34 ForwardX11 yes |
bb24419b885f
* Change for xanadu-vm's ssh config entry
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
46
diff
changeset
|
35 ForwardX11Trusted yes |
bb24419b885f
* Change for xanadu-vm's ssh config entry
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
46
diff
changeset
|
36 |
105
3f1ead4ba8b4
Changes for the Pi:
Steve Huston <huston@astro.princeton.edu>
parents:
89
diff
changeset
|
37 # Everything is fine for the Raspberry Pi, just need a different user |
3f1ead4ba8b4
Changes for the Pi:
Steve Huston <huston@astro.princeton.edu>
parents:
89
diff
changeset
|
38 Host cake cake.srhuston.net |
3f1ead4ba8b4
Changes for the Pi:
Steve Huston <huston@astro.princeton.edu>
parents:
89
diff
changeset
|
39 User pi |
3f1ead4ba8b4
Changes for the Pi:
Steve Huston <huston@astro.princeton.edu>
parents:
89
diff
changeset
|
40 ForwardAgent yes |
3f1ead4ba8b4
Changes for the Pi:
Steve Huston <huston@astro.princeton.edu>
parents:
89
diff
changeset
|
41 ForwardX11 yes |
3f1ead4ba8b4
Changes for the Pi:
Steve Huston <huston@astro.princeton.edu>
parents:
89
diff
changeset
|
42 ForwardX11Trusted yes |
3f1ead4ba8b4
Changes for the Pi:
Steve Huston <huston@astro.princeton.edu>
parents:
89
diff
changeset
|
43 |
59
301977c12bb2
* Adding rule for CSES hosts
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
57
diff
changeset
|
44 # Allow everything for CSES, astro, and home hosts w/ FQDN |
131
e3e599ad02f0
Add the *.rc hosts to trusted things
Steve Huston <huston@astro.princeton.edu>
parents:
105
diff
changeset
|
45 Host cses*.princeton.edu *.rc.princeton.edu *.rc *.astro.princeton.edu *.srhuston.net |
105
3f1ead4ba8b4
Changes for the Pi:
Steve Huston <huston@astro.princeton.edu>
parents:
89
diff
changeset
|
46 User huston |
38
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
47 ForwardAgent yes |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
48 ForwardX11 yes |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
49 ForwardX11Trusted yes |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
50 |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
51 # Deny everything for other hosts w/ a dot |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
52 Host *.* |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
53 ForwardAgent no |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
54 ForwardX11 no |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
55 ForwardX11Trusted no |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
56 |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
57 # Now allow for anything else - if we're typing a single hostname, it's likely |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
58 # trusted. |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
59 Host * |
105
3f1ead4ba8b4
Changes for the Pi:
Steve Huston <huston@astro.princeton.edu>
parents:
89
diff
changeset
|
60 User huston |
38
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
61 ForwardAgent yes |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
62 ForwardX11 yes |
9373507ce560
* Adding .ssh/config to version control
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
diff
changeset
|
63 ForwardX11Trusted yes |