diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-01-18 20:12:26 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-01-18 20:12:26 +0000 |
commit | 80d5d36b004d59e2e0a455fa08303eb5e84b175a (patch) | |
tree | f2569bfc0713dd1dc2cbcdd180dba9e15d1e901c | |
parent | 1e1f1e5d7eb108b2c81ff8b9de21fea1ff42049b (diff) | |
download | infra-80d5d36b004d59e2e0a455fa08303eb5e84b175a.tar.gz infra-80d5d36b004d59e2e0a455fa08303eb5e84b175a.tar.bz2 infra-80d5d36b004d59e2e0a455fa08303eb5e84b175a.zip |
Allow forward ssh key to DigitalOcean hosts
I don't really need key forwarding everywhere, only for gate and shell,
but I figured this will simplify configuration a bit. If something goes
wrong, it can always become more strict in the future.
-rw-r--r-- | group_vars/digitalocean.yml (renamed from host_vars/gate.ilvokhin.com/ssh.yml) | 0 | ||||
-rw-r--r-- | misc/dotfiles/ssh/config.j2 | 7 |
2 files changed, 2 insertions, 5 deletions
diff --git a/host_vars/gate.ilvokhin.com/ssh.yml b/group_vars/digitalocean.yml index fead62f..fead62f 100644 --- a/host_vars/gate.ilvokhin.com/ssh.yml +++ b/group_vars/digitalocean.yml diff --git a/misc/dotfiles/ssh/config.j2 b/misc/dotfiles/ssh/config.j2 index 8a8ad72..aa11c43 100644 --- a/misc/dotfiles/ssh/config.j2 +++ b/misc/dotfiles/ssh/config.j2 @@ -5,12 +5,9 @@ Host * AddKeysToAgent yes {% endif %} -Host gate - Hostname gate.ilvokhin.com - ForwardAgent yes - -Host shell sun mail +Host shell gate sun mail Hostname %h.ilvokhin.com + ForwardAgent yes # Moscow machines behind NAT. Host flame |