Sindbad~EG File Manager

Current Path : /usr/lib/openssh/
Upload File :
Current File : //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

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists