diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-08-04 22:33:18 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-08-04 22:33:18 +0200 |
commit | 846e306700af191d22dc874992bbf5f04d2799c4 (patch) | |
tree | 4053023650917d8406d4e952cfd3cbcb416e85d3 /data/templates/system/ssh_config.tmpl | |
parent | 3658058c6299a107dd5ce5973a9ec5e4be7064b0 (diff) | |
download | vyos-1x-846e306700af191d22dc874992bbf5f04d2799c4.tar.gz vyos-1x-846e306700af191d22dc874992bbf5f04d2799c4.zip |
ssh: T2651: add cli options for source address
When running SSH from the VyOS system the source IP address can be set by:
set system options ssh-client source-address x.x.x.x
Diffstat (limited to 'data/templates/system/ssh_config.tmpl')
-rw-r--r-- | data/templates/system/ssh_config.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/system/ssh_config.tmpl b/data/templates/system/ssh_config.tmpl new file mode 100644 index 000000000..509bd5479 --- /dev/null +++ b/data/templates/system/ssh_config.tmpl @@ -0,0 +1,3 @@ +{% if ssh_client is defined and ssh_client.source_address is defined and ssh_client.source_address is not none %}
+BindAddress {{ ssh_client.source_address }}
+{% endif %}
|