diff options
author | Christian Breunig <christian@poessinger.com> | 2023-01-08 20:02:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 20:02:12 +0100 |
commit | 5a6c0c4d61112e1ac08a334ab7e68c07342fd679 (patch) | |
tree | d0507ce9a85915c493dc8524a246e8d7d42911aa /data | |
parent | de1fa852c38b8eff22cf0c1a34abd13379c0705c (diff) | |
parent | 9ebf4db1296a0df870a47a32e3f0a66f8da16266 (diff) | |
download | vyos-1x-5a6c0c4d61112e1ac08a334ab7e68c07342fd679.tar.gz vyos-1x-5a6c0c4d61112e1ac08a334ab7e68c07342fd679.zip |
Merge pull request #1743 from c-po/t2651-ssh-client
T4922: T4922: ssh-client backports for equuleus
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/system/ssh_config.tmpl | 7 |
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 %} |