%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/snap/core20/2434/usr/lib/openssh/
Upload File :
Create Path :
Current File : //proc/thread-self/root/snap/core20/2434/usr/lib/openssh/ssh-session-cleanup

#! /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

Zerion Mini Shell 1.0