summaryrefslogtreecommitdiff
path: root/data/templates/ssh/override.conf.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/ssh/override.conf.tmpl')
-rw-r--r--data/templates/ssh/override.conf.tmpl11
1 files changed, 11 insertions, 0 deletions
diff --git a/data/templates/ssh/override.conf.tmpl b/data/templates/ssh/override.conf.tmpl
new file mode 100644
index 000000000..843aa927b
--- /dev/null
+++ b/data/templates/ssh/override.conf.tmpl
@@ -0,0 +1,11 @@
+{% set vrf_command = '/sbin/ip vrf exec ' + vrf + ' ' if vrf is defined else '' %}
+[Unit]
+StartLimitIntervalSec=0
+After=vyos-router.service
+ConditionPathExists={{config_file}}
+
+[Service]
+ExecStart=
+ExecStart={{vrf_command}}/usr/sbin/sshd -f {{config_file}} -D $SSHD_OPTS
+RestartSec=10
+