2018-08-25 23:39:06 +02:00
|
|
|
[Unit]
|
|
|
|
Description=OpenBSD Secure Shell server socket
|
2022-09-26 16:43:15 +02:00
|
|
|
Documentation=man:sshd(8) man:sshd_config(5)
|
2023-10-30 17:51:44 +01:00
|
|
|
{% if __sshd_socket_accept %}
|
2022-09-26 16:43:15 +02:00
|
|
|
Conflicts={{ sshd_service }}.service
|
2023-10-30 17:51:44 +01:00
|
|
|
{% else %}
|
|
|
|
Before=sockets.target
|
|
|
|
{% endif %}
|
2018-08-25 23:39:06 +02:00
|
|
|
|
|
|
|
[Socket]
|
|
|
|
ListenStream=22
|
2023-10-30 17:51:44 +01:00
|
|
|
{% if __sshd_socket_accept %}
|
2018-08-25 23:39:06 +02:00
|
|
|
Accept=yes
|
2023-10-30 17:51:44 +01:00
|
|
|
{% else %}
|
|
|
|
Accept=no
|
|
|
|
{% endif %}
|
2018-08-25 23:39:06 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=sockets.target
|