summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/ssh-hosts.nix
blob: 7cd075a3079e48730f202028b8e922510ae8e207 (plain)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
{ pkgs, ... }:
{
  "git.ymir" =
    { hostname = "ymir.yggdrasil.li";
      user = "gitolite";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "git.yggdrasil.li" =
    { user = "gitolite";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "git.rheperire.org" =
    { user = "gitolite";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "borg.munin" =
    { hostname = "u120515.your-storagebox.de";
      user = "u120515";
      identityFile = "~/.ssh/borg.munin";
      port = 23;
    };
  "munin" =
    { hostname = "u120515.your-storagebox.de";
      user = "u120515";
      identityFile = "~/.ssh/munin";
    };
  "ymir" =
    { hostname = "ymir.yggdrasil.li";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "surtr" =
    { hostname = "surtr.yggdrasil";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "surtr.yggdrasil.li" =
    { identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "heimdallr" =
    { hostname = "heimdallr.asgard.yggdrasil";
      user = "root";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "gitlab2.rz.ifi.lmu.de" =
    { user = "git";
      identityFile = "~/.ssh/gkleen@gitlab2.rz.ifi.lmu.de";
    };
  "gitlab2.cip.ifi.lmu.de" =
    { user = "git";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "hel".hostname = "hel.midgard.yggdrasil";
  "blackbeard" =
    { hostname = "blackbeard.tcs.ifi.lmu.de";
      user = "pi";
      identityFile = "~/.ssh/blackbeard";
    };
  "github.com" =
    { user = "git";
      identityFile = "~/.ssh/gkleen@github.com";
    };
  "ullr.playat.ch" =
    { hostname = "ullr.playat.ch";
      user = "minecraft";
      identityFile = "~/.ssh/minecraft@ullr.playat.ch";
    };
  "ullr" =
    { hostname = "185.170.112.70";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "testworx" =
    { hostname = "testworx.tcs.ifi.lmu.de";
      user = "root";
      port = 30363;
      identityFile = "~/.ssh/testworx";
    };
  "remote.cip.ifi.lmu.de" =
    { user = "kleen";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "uniworx3" =
    { hostname = "uniworx3.ifi.lmu.de";
      user = "root";
      identityFile = "~/.ssh/uni2work";
    };
  "uniworx4" =
    { hostname = "uniworx4.ifi.lmu.de";
      user = "root";
      identityFile = "~/.ssh/uni2work";
    };
  "jump.uniworx4" =
    { hostname = "uniworx4.ifi.lmu.de";
      user = "sshjump";
      identityFile = "~/.ssh/sshjump.uni2work";
    };
  "uni2workgw" =
    { hostname = "uni2workgw.ifi.lmu.de";
      user = "root";
      identityFile = "~/.ssh/uni2work";
    };
  "uniworxdb2" =
    { hostname = "uniworxdb2";
      proxyJump = "uniworx4";
      user = "root";
      identityFile = "~/.ssh/uni2work";
    };
  "uniworx5" =
    { hostname = "uniworx5.ifi.lmu.de";
      user = "root";
      identityFile = "~/.ssh/uni2work";
    };
  "gate2" =
    { hostname = "gate2.tcs.ifi.lmu.de";
      user = "gkleen";
      identityFile = "~/.ssh/tcs";
      serverAliveInterval = 0;
    };
  "proxy.gate2" =
    { hostname = "gate2.tcs.ifi.lmu.de";
      user = "gkleen";
      identityFile = "~/.ssh/proxy.gkleen@tcs.ifi.lmu.de";
      dynamicForwards = [ { port = 8118; } ];
      serverAliveInterval = 0;
      extraOptions = {
        ExitOnForwardFailure = "yes";
      };
    };
  "jump.gate2" = 
     { hostname = "gate2.tcs.ifi.lmu.de";
       user = "gkleen";
       identityFile = "~/.ssh/proxy.gkleen@tcs.ifi.lmu.de";
       serverAliveInterval = 0;
       extraOptions = {
         ExitOnForwardFailure = "yes";
       };
     };
  "gate" =
    { hostname = "gate.tcs.ifi.lmu.de";
      user = "gkleen";
      identityFile = "~/.ssh/tcs";
    };
  "proxy.gate" =
    { hostname = "gate.tcs.ifi.lmu.de";
      user = "gkleen";
      identityFile = "~/.ssh/proxy.gkleen@tcs.ifi.lmu.de";
      dynamicForwards = [ { port = 8118; } ];
      extraOptions = {
        ExitOnForwardFailure = "yes";
      };
    };
  "jump.gate" = 
     { hostname = "gate.tcs.ifi.lmu.de";
       user = "gkleen";
       identityFile = "~/.ssh/proxy.gkleen@tcs.ifi.lmu.de";
       extraOptions = {
         ExitOnForwardFailure = "yes";
       };
     };
  "oregon" =
    { hostname = "oregon.tcs.ifi.lmu.de";
      user = "root";
      identityFile = "~/.ssh/tcs";
    };
  "proxy.oregon" =
    { hostname = "oregon.tcs.ifi.lmu.de";
      user = "root";
      identityFile = "~/.ssh/tcs";
      dynamicForwards = [ { port = 8113; } ];
      extraOptions = {
        ExitOnForwardFailure = "yes";
      };
    };
  "witbank" =
    { hostname = "witbank.tcs.ifi.lmu.de";
      user = "uni2work";
      identityFile = "~/.ssh/letz";
    };
  "git.odin" =
    { hostname = "odin.asgard.yggdrasil";
      user = "gitolite";
    };
  "notmuch.odin" =
    { hostname = "odin.asgard.yggdrasil";
      identityFile = "~/.ssh/notmuch.odin.asgard.yggdrasil";
    };
  "status.odin" =
    { hostname = "odin.asgard.yggdrasil";
      identityFile = "~/.ssh/status.odin.asgard.yggdrasil";
      extraOptions.ControlPath = "~/.ssh/status-%r@%n:%p";
    };
  "moden" =
    { hostname = "oristano.tcs.ifi.lmu.de";
      user = "gkleen";
      port = 30363;
      identityFile = "~/.ssh/gkleen@oristano.tcs.ifi.lmu.de";
    };
  "ubuntu1804" =
    { hostname = "192.168.122.30";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
      forwardAgent = true;
    };
  "gitlab.haskell.org" =
    { hostname = "gitlab.haskell.org";
      identityFile = "~/.ssh/gkleen@gitlab.haskell.org";
    };
  "gitlab.lrz.de" =
    { hostname = "gitlab.lrz.de";
      user = "git";
      identityFile = "~/.ssh/gkleen@gitlab.lrz.de";
    };
  "uni2work-dev2" =
    { hostname = "uni2work-dev2.ifi.lmu.de";
      user = "gkleen";
      identityFile = "~/.ssh/uni2work";
      proxyJump = "jump.uniworx4";
    };
  "uni2work-dev1" =
    { hostname = "uni2work-dev1.ifi.lmu.de";
      user = "gkleen";
      identityFile = "~/.ssh/uni2work";
      proxyJump = "jump.uniworx4";
      localForwards = [
        { bind = { address = "localhost"; port = 3940; };
          host = { address = "localhost"; port = 3940; };
        }
        { bind = { address = "localhost"; port = 9020; };
          host = { address = "localhost"; port = 9020; };
        }
        { bind = { address = "localhost"; port = 9021; };
          host = { address = "localhost"; port = 9021; };
        }

        { bind = { address = "localhost"; port = 3178; };
          host = { address = "localhost"; port = 3178; };
        }
        { bind = { address = "localhost"; port = 8258; };
          host = { address = "localhost"; port = 8258; };
        }
        { bind = { address = "localhost"; port = 8259; };
          host = { address = "localhost"; port = 8259; };
        }
      ];
      remoteForwards = [
        { host = { address = "/run/user/1000/emacs/server"; };
          bind = { address = "/home/gkleen/.ssh/emacs-server"; };
        }
      ];
    };
  "vidhar" =
    { hostname = "vidhar.yggdrasil";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "forward.vidhar" =
    { hostname = "vidhar.yggdrasil";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
      forwardAgent = true;
      remoteForwards = [
        { host = { address = "/run/user/1000/gnupg/S.gpg-agent"; };
          bind = { address = "/run/user/1000/gnupg/S.gpg-agent"; };
        }
        { host = { address = "/run/user/1000/gnupg/S.gpg-agent.extra"; };
          bind = { address = "/run/user/1000/gnupg/S.gpg-agent.extra"; };
        }
      ];
      extraOptions = {
        StreamLocalBindUnlink = "yes";
        ExitOnForwardFailure = "yes";
        ControlPath = "none";
        ControlMaster = "no";
      };
    };
  "init.vidhar" =
    { hostname = "10.141.0.1";
      user = "root";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
      extraOptions = {
        UserKnownHostsFile = "/dev/null";
        StrictHostKeyChecking = "no";
      };
    };
  "sif" =
    { identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "unison.vidhar" =
    { hostname = "vidhar.yggdrasil";
      identityFile = "~/.ssh/unison.gkleen@vidhar.yggdrasil";
      extraOptions = {
        BatchMode = "yes";
        ControlMaster = "no";
      };
    };
  "proxy.vidhar" =
    { hostname = "vidhar.yggdrasil";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
      extraOptions = {
        ControlPath = "none";
        ExitOnForwardFailure = "yes";
        ServerAliveCountMax = "15";
        ServerAliveInterval = "2";
      };
    };
  "math60" =
    { hostname = "math60.math.lmu.de";
    };
  "mathw0d" =
    { hostname = "mathw0d.mathinst.loc";
      proxyJump = "mathw0h";
    };
  "mathw0e" =
    { hostname = "mathw0e.mathinst.loc";
      proxyJump = "mathw0h";
    };
  "mathw0f" =
    { hostname = "mathw0f.mathinst.loc";
      proxyJump = "mathw0h";
    };
  "mathw0g" =
    { hostname = "mathw0g.mathinst.loc";
    };
  "mathw0h" =
    { hostname = "mathw0h.mathinst.loc";
    };
  "proxy.mathw0g" =
    { hostname = "mathw0g.mathinst.loc";
      extraOptions = {
        ControlPath = "none";
        ServerAliveCountMax = "15";
        ServerAliveInterval = "2";
      };
    };
  "proxy.mathw0h" =
    { hostname = "mathw0h.mathinst.loc";
      proxyJump = "proxy.mathw0g";
      extraOptions = {
        ControlPath = "none";
        ExitOnForwardFailure = "yes";
        ServerAliveCountMax = "15";
        ServerAliveInterval = "2";
      };
    };
  "vrt-kvm04" =
    { hostname = "vrt-kvm04";
      proxyJump = "mathw0e";
      user = "root";
    };
  "vrt-kvm02" =
    { hostname = "vrt-kvm02";
      proxyJump = "mathw0e";
      user = "root";
    };
  "tts-www01" =
    { hostname = "tts-www01.mathinst.loc";
      proxyJump = "mathw0h";
      user = "root";
    };
  "vpn-wg01" =
    { hostname = "vpn-wg01.mathinst.loc";
      proxyJump = "mathw0h";
      user = "root";
    };
  "repo-apt01" =
    { hostname = "repo-apt01.mathinst.loc";
      proxyJump = "mathw0h";
      user = "root";
    };
  "mail-mi01" =
    { hostname = "mail-mi01.mathinst.loc";
      proxyJump = "mathw0h";
    };
  "dpl-fai01" =
    { hostname = "dpl-fai01.mathinst.loc";
      user = "root";
    };
  "math05" =
    { hostname = "math05.mathinst.loc";
      proxyJump = "mathw0h";
      extraOptions.KexAlgorithms = "+diffie-hellman-group1-sha1";
    };
  "switch01" =
    { hostname = "10.141.1.2";
      user = "admin";
      proxyJump = "vidhar";
      identityFile = "~/.ssh/admin@switch01.yggdrasil";
      extraOptions = {
        KexAlgorithms = "+diffie-hellman-group1-sha1";
        HostKeyAlgorithms = "+ssh-dss";
        Ciphers = "+aes256-cbc";
        MACs = "+hmac-sha1";
      };
    };
  "ap01" =
    { hostname = "10.141.1.4";
      user = "root";
      proxyJump = "vidhar";
      identityFile = "~/.ssh/gkleen@sif.midgard.yggdrasil";
    };
  "webdev02-mwn.lrz.de" =
    { proxyCommand = "${pkgs.socat}/bin/socat - SOCKS4A:127.0.0.1:%h:%p,socksport=8118";
    };
  "yggdrasil.borgbase" =
    { hostname = "nx69hpl8.repo.borgbase.com";
      user = "nx69hpl8";
      identityFile = "~/.ssh/borgbase";
    };
  "www-mi01" =
    { proxyJump = "mathw0h";
    };
}