Univention Bugzilla – Bug 47233
stuck connections with ssh reboot using systemd
Last modified: 2019-07-31 09:34:06 CEST
+++ This bug was initially created as a clone of Bug #45215 +++ With systemd "reboot", "halt", "shutdown" is too fast, as the sshd gets killed before the connection is closed down properly. This leads to the ssh session staying around until the TCP timeout kicks in. Calling reboot & logout fixes it. From #45215: (In reply to Felix Botner from comment #3) > OK, works in ec2 utils > > (In reply to Erik Damrose from comment #1) > > This is not only an issue in UCS Test, it is also annoying while working > > with UCS in general. We could backport > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751636 > > yep, but please open a new bug for UCS
The real bug is that "libpam-systemd" is installed by default via Recommends by "systemd" and "openssh-server", but it is not included in "/etc/pam.d/common-session" as the UCR template is out-of-date. echo "session optional pam_systemd.so" >>base/univention-pam/conffiles/etc/pam.d/common-session.d/10univention-pam_common
I added the line that Philipp proposed. Now when shutting down your ssh session gets closed. 70460a4 Bug #47233: yaml 7fa3c41 Bug #47233: yaml fa47957 Bug #47233: close ssh connection properly when shutting down Successful build Package: univention-pam Version: 12.0.2-1A~4.4.0.201903141201 Branch: ucs_4.4-0 Scope: errata4.4-0
Verified: * Code * Function * Advisory
We also need a backport for 4.3-3
(In reply to Arvid Requate from comment #4) > We also need a backport for 4.3-3 What about the rule to create a different bug with a different target mile stone? At least "announce_errata" needs a matching TM.
> What about the rule to create a different bug with a different target mile stone? At least "announce_errata" needs a matching TM. I don't know if there is a rule other than that the tool checks this, which my be overridden AFAIK? But the assignee may create a new bug to keep things as simple as possible.
I've simply cloned the bug for 4.3, and will set this back to verified.
<http://errata.software-univention.de/ucs/4.4/8.html>