diff --git a/templates/ssh_config.jinja2 b/templates/ssh_config.jinja2
index 9440e6ef1bf59dcf285092e0b9b81a9e7dfd1813..6a602f6a008fc593bee543b722374a975b046aac 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 %}