diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-05-04 17:16:41 +0100 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-05-04 17:16:41 +0100 |
commit | b9d69ec236715213ed8a0cfb496bb531b2b47237 (patch) | |
tree | 92bfe63790fc81afeb867f3a09333b3e76ecaad5 | |
parent | 940c4ab62ef5a64ddaaaf57a49357c3a16c92eff (diff) | |
download | infra-b9d69ec236715213ed8a0cfb496bb531b2b47237.tar.gz infra-b9d69ec236715213ed8a0cfb496bb531b2b47237.tar.bz2 infra-b9d69ec236715213ed8a0cfb496bb531b2b47237.zip |
Simplify ssh config a bit
Use `%h` to fold config to indentical hosts to one item.
-rw-r--r-- | misc/dotfiles/ssh/config.j2 | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/misc/dotfiles/ssh/config.j2 b/misc/dotfiles/ssh/config.j2 index 0872a40..7fe3bec 100644 --- a/misc/dotfiles/ssh/config.j2 +++ b/misc/dotfiles/ssh/config.j2 @@ -9,11 +9,8 @@ Host gate Hostname gate.ilvokhin.com ForwardAgent yes -Host sun - Hostname sun.ilvokhin.com - -Host mail - Hostname mail.ilvokhin.com +Host sun mail + Hostname %h.ilvokhin.com # Moscow machines behind NAT. Host water |