Procházet zdrojové kódy

ssh config extended by jumphosts and additional "*_ext" hosts

master
Dirk Alders před 1 rokem
rodič
revize
d96bdbd897
1 změnil soubory, kde provedl 45 přidání a 4 odebrání
  1. 45
    4
      .ssh/config

+ 45
- 4
.ssh/config Zobrazit soubor

1
+Host public_jumphost
2
+    HostName mount-mockery.de
3
+    User jump
4
+
5
+Host hettingen_jumphost
6
+    HostName localhost
7
+    User jump
8
+    Port 10022
9
+    ProxyJump jump@public_jumphost
10
+
1
 Host ahorn_tmux
11
 Host ahorn_tmux
2
     HostName ahorn
12
     HostName ahorn
3
     User dirk
13
     User dirk
33
     RequestTTY yes
43
     RequestTTY yes
34
     RemoteCommand tmux attach-session -t default_ssh || tmux new-session -s default_ssh
44
     RemoteCommand tmux attach-session -t default_ssh || tmux new-session -s default_ssh
35
 
45
 
46
+Host ffe_ext
47
+    HostName ffe
48
+    User dirk
49
+    Port 22
50
+    RequestTTY yes
51
+    ProxyJump jump@hettingen_jumphost
52
+
53
+Host ffe_ext_tmux
54
+    HostName ffe
55
+    User dirk
56
+    Port 22
57
+    RequestTTY yes
58
+    ProxyJump jump@hettingen_jumphost
59
+    RemoteCommand tmux attach-session -t default_ssh || tmux new-session -s default_ssh
60
+
36
 Host ffw_tmux
61
 Host ffw_tmux
37
     HostName ffw
62
     HostName ffw
38
     User dirk
63
     User dirk
40
     RequestTTY yes
65
     RequestTTY yes
41
     RemoteCommand tmux attach-session -t default_ssh || tmux new-session -s default_ssh
66
     RemoteCommand tmux attach-session -t default_ssh || tmux new-session -s default_ssh
42
 
67
 
43
-Host leyk
44
-    # HostName leyk
68
+Host ffw_ext
69
+    HostName ffw
70
+    User dirk
71
+    Port 22
72
+    RequestTTY yes
73
+    ProxyJump jump@hettingen_jumphost
74
+
75
+Host ffw_ext_tmux
76
+    HostName ffw
77
+    User dirk
78
+    Port 22
79
+    RequestTTY yes
80
+    ProxyJump jump@hettingen_jumphost
81
+    RemoteCommand tmux attach-session -t default_ssh || tmux new-session -s default_ssh
82
+
83
+Host leyk_ext
84
+    HostName leyk
45
     User dirk
85
     User dirk
46
     Port 22
86
     Port 22
47
     RequestTTY yes
87
     RequestTTY yes
88
+    ProxyJump jump@hettingen_jumphost
48
     # RemoteCommand tmux attach-session -t default_ssh || tmux new-session -s default_ssh
89
     # RemoteCommand tmux attach-session -t default_ssh || tmux new-session -s default_ssh
49
 
90
 
50
 Host mm_tmux
91
 Host mm_tmux
66
     User dirk
107
     User dirk
67
     Port 10022
108
     Port 10022
68
     RequestTTY yes
109
     RequestTTY yes
69
-    ProxyJump jump@mount-mockery.de
110
+    ProxyJump jump@public_jumphost
70
     LocalForward 1880 localhost:1880
111
     LocalForward 1880 localhost:1880
71
 
112
 
72
 Host multimedia_ext_tmux
113
 Host multimedia_ext_tmux
74
     User dirk
115
     User dirk
75
     Port 10022
116
     Port 10022
76
     RequestTTY yes
117
     RequestTTY yes
77
-    ProxyJump jump@mount-mockery.de
118
+    ProxyJump jump@public_jumphost
78
     RemoteCommand tmux attach-session -t default_ssh || tmux new-session -s default_ssh
119
     RemoteCommand tmux attach-session -t default_ssh || tmux new-session -s default_ssh
79
     LocalForward 1880 localhost:1880
120
     LocalForward 1880 localhost:1880
80
 
121
 

Načítá se…
Zrušit
Uložit