summaryrefslogtreecommitdiff
path: root/debian/README.Debian
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2016-07-29 02:22:51 +0100
committerColin Watson <cjwatson@debian.org>2016-07-29 02:22:51 +0100
commit556ee3d2d433dc70512003667398f0979b0940a9 (patch)
tree9fa699e1bc8e37a6b4b4b23136ffc5e239f619cc /debian/README.Debian
parentcf165e2bc4e2f60bd8abb807ba333950412516d0 (diff)
Stop enabling ssh-session-cleanup.service by default; instead, ship it as an example and add a section to README.Debian. libpam-systemd >= 230 and "UsePAM yes" should take care of the original problem for most systemd users (thanks, Michael Biebl; closes: #832155).
Diffstat (limited to 'debian/README.Debian')
-rw-r--r--debian/README.Debian19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
index d26e5a39d..f0e5bea24 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -232,6 +232,25 @@ it listen on a different address or port, then you will need to do this by
232copying /lib/systemd/system/ssh.socket to /etc/systemd/system/ssh.socket and 232copying /lib/systemd/system/ssh.socket to /etc/systemd/system/ssh.socket and
233modifying the ListenStream option. See systemd.socket(5) for details. 233modifying the ListenStream option. See systemd.socket(5) for details.
234 234
235Terminating SSH sessions cleanly on shutdown/reboot with systemd
236----------------------------------------------------------------
237
238If you have libpam-systemd >= 230 installed (following openssh-server's
239Recommends) and "UsePAM yes" in sshd_config (the default configuration
240shipped by this package), then SSH sessions will be terminated cleanly when
241the server is shut down or rebooted.
242
243If either of these conditions does not hold, then you may find that SSH
244sessions hang silently when the server is shut down or rebooted. If you do
245not want to use PAM or configure it properly for whatever reason, then you
246can instead copy
247/usr/share/doc/openssh-server/examples/ssh-session-cleanup.service to
248/etc/systemd/system/ and run "systemctl enable ssh-session-cleanup.service".
249
250Non-systemd users may find /usr/lib/openssh/ssh-session-cleanup helpful if
251they have a similar problem, although at present there is no system
252integration for this for anything other than systemd.
253
235-- 254--
236Matthew Vernon <matthew@debian.org> 255Matthew Vernon <matthew@debian.org>
237Colin Watson <cjwatson@debian.org> 256Colin Watson <cjwatson@debian.org>