netz39-infra-ansible/templates/ssh_config.j2
Stefan Haun 8a692376d3 Add SSH entry for host Rhodium
Please note that it is still necessary to
manually add the SSH keys to the OpenWRT config.
2025-01-13 10:28:59 +01:00

35 lines
722 B
Django/Jinja

# {{ 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 %}
{# This is our router #}
Host rhodium.n39.eu
Hostname rhodium.n39.eu
IdentityFile {{ setup_ssh_key }}
User root
ProxyJump ssh.n39.eu
Port 22