netz39-infra-ansible/templates/ssh_config.j2

28 lines
570 B
Text
Raw Permalink Normal View History

# {{ ansible_managed }}
Host ssh.n39.eu
Hostname ssh.n39.eu
IdentityFile {{ setup_ssh_key }}
IdentitiesOnly yes
User {{ setup_ssh_logname }}
Port 22
{% for host in groups['location_space'] %}
Host {{ host }}
Hostname {{ host }}
IdentityFile {{ setup_ssh_key }}
IdentitiesOnly yes
User {{ setup_ssh_logname }}
ProxyJump ssh.n39.eu
Port 22
{% endfor %}
{% for host in groups['location_internet'] %}
Host {{ host }}
Hostname {{ host }}
IdentityFile {{ setup_ssh_key }}
IdentitiesOnly yes
User {{ setup_ssh_logname }}
Port 22
{% endfor %}