summaryrefslogtreecommitdiffstatshomepage
path: root/private_dot_ssh/config.tmpl
blob: 7bb6887cc243e2a183703883c39e6332773bc08c (plain) (blame)
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
{{ if eq (default "host" (index . "machineRole")) "canonical" }}
Include config.local
Host *
  HashKnownHosts yes
  ForwardAgent no
  ServerAliveInterval 120
{{ else }}
{{ if eq (default "host" (index . "machineRole")) "host" }}
Host ubuntu-packaging
  HostName ubuntu-packaging
  User ubuntu
  IdentityFile ~/.ssh/work.pub
  IdentitiesOnly yes
  ProxyCommand lxc exec ubuntu-packaging -T -- /usr/bin/nc 127.0.0.1 22
  ForwardAgent no
  ControlMaster no
  ControlPath none

Host *
{{ end }}
# Ensure KnownHosts are unreadable if leaked
HashKnownHosts yes

Compression no
ControlMaster auto
ControlPersist 10
AddressFamily inet
ServerAliveInterval 120
IdentitiesOnly yes

Host git.sommerfeld.dev
  Hostname mandibles.wg

Host *
Include work.config

Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"

Match host *.wg,*.pulpo
  IdentityFile ~/.ssh/nym.pub
{{ end }}