Debian Jessie hangs ssh on reboot / halt

29 04 2015

Sometimes after reboot or halt a system with Debian Jessie, particularly with systemd, the ssh session didn’t close correctly and hangs. The problem is related with how systemd registers user sessions and control group hierarchy. For solve the it, install libpam-systemd: apt-get install libpam-systemd

 

– Update 1 – Agust 2016

The bug was fixed in openssh-server https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751636

* Add a session cleanup script and a systemd unit file to trigger it,
     which serves to terminate SSH sessions cleanly if systemd doesn't do
     that itself, often because libpam-systemd is not installed (thanks,
     Vivek Das Mohapatra, Tom Hutter, and others; closes: #751636).

Now, updating openssh-server to version 1:7.3p1-1 or higher solve it too.

 

Advertisements

Actions

Information

4 responses

24 11 2015
dogdayfear

Great! I will try tonight in my debian based distro for Rasberry Pi. This was driving me crazy and thats because I rolled back to wheezy.

1 12 2015
dogdayfear

Pues no, no ha funcionado. 😦

15 01 2016
rihad

Worked brilliantly, thanks! Shame on the over-designed systemd.

4 02 2016
Hiroshi Takahashi

Thanks from far east !!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: