summaryrefslogtreecommitdiffstatshomepage
path: root/private_dot_ssh/config.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'private_dot_ssh/config.tmpl')
-rw-r--r--private_dot_ssh/config.tmpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/private_dot_ssh/config.tmpl b/private_dot_ssh/config.tmpl
index b6dce43..7bb6887 100644
--- a/private_dot_ssh/config.tmpl
+++ b/private_dot_ssh/config.tmpl
@@ -5,6 +5,19 @@ Host *
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
@@ -18,6 +31,7 @@ IdentitiesOnly yes
Host git.sommerfeld.dev
Hostname mandibles.wg
+Host *
Include work.config
Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"