From 91fca422a9f52e8e8e67d2d5b1a5d35ff5e3e021 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Wed, 27 Dec 2017 11:46:36 +0100
Subject: [PATCH] Add IP as hostname for proxy mode

---
 templates/ssh_config.jinja2 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/templates/ssh_config.jinja2 b/templates/ssh_config.jinja2
index 9440e6e..6a602f6 100644
--- a/templates/ssh_config.jinja2
+++ b/templates/ssh_config.jinja2
@@ -14,6 +14,9 @@ Host {{ hostname }}{% for alias in host.aliases|default([]) %} {{ alias }}{% end
 {% endfor %}
 {% endif %}
 {% if host.proxy is defined %}
+{% if host.ip is defined %}
+  Hostname {{ host.ip }}
+{% endif %}
   ForwardAgent yes
   ProxyCommand /usr/bin/ssh {{ host.proxy }} /bin/nc %h %p
 {% endif %}
-- 
GitLab