From b9d69ec236715213ed8a0cfb496bb531b2b47237 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sat, 4 May 2024 17:16:41 +0100 Subject: Simplify ssh config a bit Use `%h` to fold config to indentical hosts to one item. --- misc/dotfiles/ssh/config.j2 | 7 ++----- 1 file 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 -- cgit v1.2.3-70-g09d2