-
Notifications
You must be signed in to change notification settings - Fork 1
/
ssh_config
75 lines (64 loc) · 1.78 KB
/
ssh_config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Generic mpp connection, works as 'ssh mpp', 'scp mpp:..' and so forth
Host mpp
HostName pcbelle15.mpp.mpg.de
ForwardX11 yes
ForwardX11Trusted yes
# use with autossh -M 0 -f -- ssh -fN reverse-lmu-mpp to create reverse ssh
# tunnel to connect back to lmu
Host reverse-lmu-mpp
Hostname 138.246.99.233
ConnectionAttempts 3
TCPKeepAlive no
PasswordAuthentication no
IdentitiesOnly yes
IdentityFile ~/.ssh/id_rsa
ExitOnForwardFailure yes
RemoteForward 22001 localhost:22
ServerAliveCountMax 3
ServerAliveInterval 60
Host kuhrios
Hostname 138.246.99.233
ForwardX11 yes
ForwardX11Trusted yes
Host kuhrios-vscode
Hostname 138.246.99.233
ControlPath ~/.ssh/control-%r@%h-vscode:%p
IdentityFile ~/.ssh/id_vscode
Host lmu
Hostname 10.155.59.111
ForwardX11 yes
ForwardX11Trusted yes
Compression yes
# connect using mpp as proxy
ProxyCommand ssh kuhrios -W %h:%p
Host agkuhr*
ForwardX11 yes
ForwardX11Trusted yes
# disable proxy in the one network we have direct access
Match Originalhost kek Exec "iwgetid | grep tsubaki-III"
ProxyCommand none
Host kek
Hostname login.cc.kek.jp
ProxyCommand ssh kuhrios -W %h:%p
Host b2-master
User b2soft
HostName b2-master.belle2.org
ProxyCommand ssh naf -W %h:%p
Host naf
HostName naf-belle12.desy.de
Host cip
HostName habicht.cip.physik.uni-muenchen.de
User Martin.Ritter
Host *
ControlMaster auto
ControlPath ~/.ssh/control-%r@%h:%p
ControlPersist 10m
TCPKeepAlive yes
ServerAliveInterval 20
# Forward SSH Key Agent, this allows to log back into home machines using
# your local private key
ForwardAgent yes
# numbers are not important
CheckHostIP no
# always run compression
Compression yes