When I reboot my Linux server (BusyBox Linux) all ongoing ssh client connections run into a stucked state until a timeout on client side occurs. There is no message sent to the ssh client to produce a "Disconnect" error message. This basically makes the ssh client appear like something is frozen.
I'am using systemd with this service config for sshd in version OpenSSH_5.8p2
[Unit] Description=SSH Per-Connection Server After=syslog.target [Service] ExecStart=/usr/sbin/sshd -i SuccessExitStatus=0 255 StandardInput=socket
Is there a way to configure a gracefull shutdown for the sshd?