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.

References

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

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch