diff options
author | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-12-20 01:18:26 -0600 |
---|---|---|
committer | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-12-20 01:33:34 -0600 |
commit | 10b5c5bc93f5d9bb99c5523f41a97d49a833a453 (patch) | |
tree | c51feb98f065efb2440a64e0d9610106a3081a1f /data/live-build-config/includes.chroot/usr/lib | |
parent | 25e0cdefbe0f7f1d5ae1d8a1cfd5ed31d3d596fa (diff) | |
download | vyos-build-10b5c5bc93f5d9bb99c5523f41a97d49a833a453.tar.gz vyos-build-10b5c5bc93f5d9bb99c5523f41a97d49a833a453.zip |
ssh: T5841: Remove ssh-session-cleanup.service
With libpam-systemd >= 230-2, ssh-session-cleanup.service is no longer
necessary because when `UsePAM yes` in `/etc/ssh/sshd_config` (which is
the default), SSH sessions are cleaned up automatically when ssh-server
is shutdown or the system is rebooted.
Diffstat (limited to 'data/live-build-config/includes.chroot/usr/lib')
-rwxr-xr-x | data/live-build-config/includes.chroot/usr/lib/openssh/ssh-session-cleanup | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/data/live-build-config/includes.chroot/usr/lib/openssh/ssh-session-cleanup b/data/live-build-config/includes.chroot/usr/lib/openssh/ssh-session-cleanup deleted file mode 100755 index f283cc96..00000000 --- a/data/live-build-config/includes.chroot/usr/lib/openssh/ssh-session-cleanup +++ /dev/null @@ -1,11 +0,0 @@ -#! /bin/sh - -ssh_session_pattern='sshd: \S.*@pts/[0-9]+' - -IFS="$IFS@" -pgrep -a -f "$ssh_session_pattern" | while read pid daemon user pty; do - echo "Found ${daemon%:} session $pid on $pty; sending SIGTERM" - kill "$pid" || true -done - -exit 0 |