/lib/systemd/system/lsh-server.service is in lsh-server 2.1-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | [Unit]
Description=Secure Shell v2 (SSH2) protocol server
Documentation=man:lshd(8)
After=local-fs.target remote-fs.target network.target nss-lookup.target
[Service]
Type=simple
ExecStart=/bin/sh -c "case \"$ENABLE_SFTP\" in \
true|y*|Y*) ;; \
*) SFTP_FLAG='';; esac; \
exec /usr/sbin/lshd --port \"$LSHD_PORT\" $SFTP_FLAG $EXTRA_ARGS"
Environment="LSHD_PORT=22" "SFTP_FLAG=--subsystems sftp=/usr/lib/lsh-server/sftp-server"
EnvironmentFile=-/etc/default/lsh-server
KillSignal=SIGHUP
KillMode=process
SendSIGKILL=no
SyslogIdentifier=lshd
TimeoutStopSec=1
[Install]
WantedBy=multi-user.target
|