summaryrefslogtreecommitdiff
path: root/sshd.service
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.service')
-rw-r--r--sshd.service12
1 files changed, 8 insertions, 4 deletions
diff --git a/sshd.service b/sshd.service
index d9fa931..fa3d3f2 100644
--- a/sshd.service
+++ b/sshd.service
@@ -1,11 +1,15 @@
[Unit]
-Description=SSH Daemon
+Description=SSH Secure Shell Service
After=syslog.target
[Service]
-Type=forking
-ExecStart=/etc/init.d/sshd start
-ExecStop=/usr/init.d/sshd stop
+ExecStart=/usr/sbin/sshd -D
[Install]
WantedBy=multi-user.target
+
+# Note that this is the service file for running a single SSH server for all
+# incoming connections, suitable only for systems with a large amount of SSH
+# traffic. In almost all other cases it is a better idea to use sshd.socket +
+# sshd@.service (i.e. the on-demand spawning version for one instance per
+# connection).