浏览代码

proxy jump auto configure

systemd-xsession
父节点
当前提交
e3762f74af
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      templates/ssh/ssh.config.j2

+ 3
- 0
templates/ssh/ssh.config.j2 查看文件

@@ -6,4 +6,7 @@ Host {{hostname}}
{% elif 'external_ip' in hostvars[hostname] %}
HostName {{hostvars[hostname].external_ip}}
{% endif %}
{% if 'ssh_proxy_jump' in hostvars[hostname] %}
ProxyJump {{hostvars[hostname].ssh_proxy_jump}}
{% endif %}
{% endfor %}