瀏覽代碼

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 %}