diff options
| author | sommerfeld <sommerfeld@sommerfeld.dev> | 2026-09-17 15:05:37 +0100 |
|---|---|---|
| committer | sommerfeld <sommerfeld@sommerfeld.dev> | 2026-09-17 15:05:37 +0100 |
| commit | 7b56bf3085dcfc2f7800a2b221aa76f181edecfb (patch) | |
| tree | 1e0e63d6d81a4cd658e12ce4b028efeca394c36c /private_dot_ssh/config.tmpl | |
| parent | ce0e07215869722b51c93ac7c5899108cee9ad25 (diff) | |
| download | dotfiles-7b56bf3085dcfc2f7800a2b221aa76f181edecfb.tar.gz dotfiles-7b56bf3085dcfc2f7800a2b221aa76f181edecfb.tar.bz2 dotfiles-7b56bf3085dcfc2f7800a2b221aa76f181edecfb.zip | |
Add SSH access to the Ubuntu packaging container
Diffstat (limited to 'private_dot_ssh/config.tmpl')
| -rw-r--r-- | private_dot_ssh/config.tmpl | 14 |
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" |
