summaryrefslogtreecommitdiff
path: root/data/templates/ssh/override.conf.j2
blob: 4454ad1b8a9b7f7425d16eb88c83a169fa0140d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %}
[Unit]
StartLimitIntervalSec=0
After=vyos-router.service
ConditionPathExists={{ config_file }}

[Service]
EnvironmentFile=
ExecStart=
ExecStart={{ vrf_command }}/usr/sbin/sshd -f {{ config_file }}
Restart=always
RestartPreventExitStatus=
RestartSec=10
RuntimeDirectoryPreserve=yes