Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Debian - Close SSH Connections Before Turning Off

With the default Debian 8.1 installation, whenever I send the command to turn off or restart my server, my terminal that is connected via SSH is left hanging and unresponsive.

Luckily this can be easily resolved by executing:

sudo apt install libpam-systemd dbus

Then you need to reboot for the changes to take effect. E.g. your connection will still not close as you would wish, the first time you do this.


Last updated: 29th July 2021
First published: 16th August 2018