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.

References