Hi,
 
The following works for me on Debian 8.3:
 
1. Remove symlink /etc/systemd/system/sshd.service -> /lib/systemd/system/ssh.service - who knows what does symlink do here?
2. Copy /lib/systemd/system/ssh.service to /etc/systemd/system/ssh.service.
3. Edit /etc/systemd/system/ssh.service, add ExecStop=/usr/bin/killall sshd to [Service] section:
 
[Service]
EnvironmentFile=-/etc/default/ssh
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/killall sshd
KillMode=process
Restart=on-failure
 
4. Reload systemd: systemctl daemon-reload
 
Best regards
Alexander Afonyashin

Reply via email to