From 0c1a61fb18e73267c11c6e10c449229439356481 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sun, 16 Jun 2024 21:17:51 +0100 Subject: Do not set gate as `ProxyJump` on gate host itself --- misc/dotfiles/ssh/config.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/dotfiles/ssh/config.j2 b/misc/dotfiles/ssh/config.j2 index f86927e..3ee3830 100644 --- a/misc/dotfiles/ssh/config.j2 +++ b/misc/dotfiles/ssh/config.j2 @@ -14,11 +14,15 @@ Host sun mail # Moscow machines behind NAT. Host flame +{% if inventory_hostname_short != "gate" %} ProxyJump gate +{% endif %} Hostname 10.0.0.2 ForwardAgent yes Host water +{% if inventory_hostname_short != "gate" %} ProxyJump gate +{% endif %} Hostname 10.0.0.3 ForwardAgent yes -- cgit v1.2.3-70-g09d2