Bug#751636: openssh-server: ssh sessions are not cleanly termined on shutdown/restart with systemd
I have found that using ssh.socket instead of ssh.service makes clients
shut down cleanly most of the time (sometimes they will still hang, but
it is rare).
systemctl disable ssh.service
systemctl enable ssh.socket
Reply to: