12 lines
No EOL
428 B
Django/Jinja
12 lines
No EOL
428 B
Django/Jinja
Host gateway
|
|
HostName tunnel-end.a-0.me
|
|
User ssh-tunnel
|
|
Port 22
|
|
IdentityFile /home/autossh/.ssh/tunnel-key
|
|
IdentitiesOnly yes
|
|
ExitOnForwardFailure yes
|
|
ServerAliveInterval 5
|
|
ServerAliveCountMax 3
|
|
{% for forwarding in tunneled_ports %}
|
|
RemoteForward localhost:{{ forwarding.ephemeral_port }} {{ forwarding.dest_host }}:{{ forwarding.dest_port }}
|
|
{% endfor %} |