aboutsummaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles/qtip-generator/files/compute/templates/ssh.cfg
blob: 94acd778ff839b3fdc571f20fece003ebec2fcef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% raw %}
# Connect to target node through jump host
#
# OpenSSH 7.3:
#   ProxyJump jumphost
# before OpenSSH 7.3
#   ProxyCommand ssh -o 'ForwardAgent yes' jumphost 'ssh-add && nc %h %p'

{% for (name, host) in hosts_meta.items() %}
Host {{ name }}
  HostName {{ host.ansible_ssh_host }}
      User {{ host.ansible_user }}
{% if proxy_jump %}
  ProxyCommand ssh -o 'ForwardAgent yes' {{ installer_host }} 'ssh-add && nc %h %p'
{% endif %}

{% endfor %}
{% endraw %}