Browse Source

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

master
Dirk Alders 1 year ago
parent
commit
d96bdbd897
1 changed files with 45 additions and 4 deletions
  1. 45
    4
      .ssh/config

+ 45
- 4
.ssh/config View File

@@ -1,3 +1,13 @@
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 11
 Host ahorn_tmux
2 12
     HostName ahorn
3 13
     User dirk
@@ -33,6 +43,21 @@ Host ffe_tmux
33 43
     RequestTTY yes
34 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 61
 Host ffw_tmux
37 62
     HostName ffw
38 63
     User dirk
@@ -40,11 +65,27 @@ Host ffw_tmux
40 65
     RequestTTY yes
41 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 85
     User dirk
46 86
     Port 22
47 87
     RequestTTY yes
88
+    ProxyJump jump@hettingen_jumphost
48 89
     # RemoteCommand tmux attach-session -t default_ssh || tmux new-session -s default_ssh
49 90
 
50 91
 Host mm_tmux
@@ -66,7 +107,7 @@ Host multimedia_ext
66 107
     User dirk
67 108
     Port 10022
68 109
     RequestTTY yes
69
-    ProxyJump jump@mount-mockery.de
110
+    ProxyJump jump@public_jumphost
70 111
     LocalForward 1880 localhost:1880
71 112
 
72 113
 Host multimedia_ext_tmux
@@ -74,7 +115,7 @@ Host multimedia_ext_tmux
74 115
     User dirk
75 116
     Port 10022
76 117
     RequestTTY yes
77
-    ProxyJump jump@mount-mockery.de
118
+    ProxyJump jump@public_jumphost
78 119
     RemoteCommand tmux attach-session -t default_ssh || tmux new-session -s default_ssh
79 120
     LocalForward 1880 localhost:1880
80 121
 

Loading…
Cancel
Save