summaryrefslogtreecommitdiff
path: root/data/templates/system/ssh_config.j2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2023-01-04 19:58:59 +0100
committerChristian Poessinger <christian@poessinger.com>2023-01-04 19:58:59 +0100
commit87cc636bd2baf576a2a5ece7a4f8318eb4f69c2e (patch)
tree91141bcd84687d1e6af08ea6ed6b5f6fea8b168d /data/templates/system/ssh_config.j2
parent7763de6c4b93d3372ab3f4572d9fa6b7536102b3 (diff)
downloadvyos-1x-87cc636bd2baf576a2a5ece7a4f8318eb4f69c2e.tar.gz
vyos-1x-87cc636bd2baf576a2a5ece7a4f8318eb4f69c2e.zip
ssh: T2651: add source-interface support ssh-client
Diffstat (limited to 'data/templates/system/ssh_config.j2')
-rw-r--r--data/templates/system/ssh_config.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/system/ssh_config.j2 b/data/templates/system/ssh_config.j2
index 1449f95b1..d3ede0971 100644
--- a/data/templates/system/ssh_config.j2
+++ b/data/templates/system/ssh_config.j2
@@ -1,3 +1,6 @@
{% if ssh_client.source_address is vyos_defined %}
BindAddress {{ ssh_client.source_address }}
{% endif %}
+{% if ssh_client.source_interface is vyos_defined %}
+BindInterface {{ ssh_client.source_interface }}
+{% endif %}