diff options
author | Colin Watson <cjwatson@debian.org> | 2016-07-29 02:22:51 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-07-29 02:22:51 +0100 |
commit | 556ee3d2d433dc70512003667398f0979b0940a9 (patch) | |
tree | 9fa699e1bc8e37a6b4b4b23136ffc5e239f619cc /debian/README.Debian | |
parent | cf165e2bc4e2f60bd8abb807ba333950412516d0 (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.Debian | 19 |
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 | |||
232 | copying /lib/systemd/system/ssh.socket to /etc/systemd/system/ssh.socket and | 232 | copying /lib/systemd/system/ssh.socket to /etc/systemd/system/ssh.socket and |
233 | modifying the ListenStream option. See systemd.socket(5) for details. | 233 | modifying the ListenStream option. See systemd.socket(5) for details. |
234 | 234 | ||
235 | Terminating SSH sessions cleanly on shutdown/reboot with systemd | ||
236 | ---------------------------------------------------------------- | ||
237 | |||
238 | If you have libpam-systemd >= 230 installed (following openssh-server's | ||
239 | Recommends) and "UsePAM yes" in sshd_config (the default configuration | ||
240 | shipped by this package), then SSH sessions will be terminated cleanly when | ||
241 | the server is shut down or rebooted. | ||
242 | |||
243 | If either of these conditions does not hold, then you may find that SSH | ||
244 | sessions hang silently when the server is shut down or rebooted. If you do | ||
245 | not want to use PAM or configure it properly for whatever reason, then you | ||
246 | can 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 | |||
250 | Non-systemd users may find /usr/lib/openssh/ssh-session-cleanup helpful if | ||
251 | they have a similar problem, although at present there is no system | ||
252 | integration for this for anything other than systemd. | ||
253 | |||
235 | -- | 254 | -- |
236 | Matthew Vernon <matthew@debian.org> | 255 | Matthew Vernon <matthew@debian.org> |
237 | Colin Watson <cjwatson@debian.org> | 256 | Colin Watson <cjwatson@debian.org> |