summaryrefslogtreecommitdiff
path: root/data/templates/system/ssh_config.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/system/ssh_config.tmpl')
-rw-r--r--data/templates/system/ssh_config.tmpl7
1 files changed, 6 insertions, 1 deletions
diff --git a/data/templates/system/ssh_config.tmpl b/data/templates/system/ssh_config.tmpl
index abc03f069..94dac9ed3 100644
--- a/data/templates/system/ssh_config.tmpl
+++ b/data/templates/system/ssh_config.tmpl
@@ -1,3 +1,8 @@
-{% if ssh_client is defined and ssh_client.source_address is defined and ssh_client.source_address is not none %}
+{% if ssh_client is defined %}
+{% if ssh_client.source_address is defined and ssh_client.source_address is not none %}
BindAddress {{ ssh_client.source_address }}
+{% endif %}
+{% if ssh_client.source_interface is defined and ssh_client.source_address is not none %}
+BindInterface {{ ssh_client.source_interface }}
+{% endif %}
{% endif %}