aboutsummaryrefslogtreecommitdiffstats
path: root/resources/roles/qtip-workspace/files/copy/templates/ssh.cfg
blob: d6a266bae0f3b571ff7cca742f7c13bdad5d1c7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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 root
  ProxyCommand ssh -o 'ForwardAgent yes' {{ installer_master }} 'ssh-add && nc %h %p'

{% endfor %}