#! /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
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
agent-launch | File | 700 B | 0755 |
|
sftp-server | File | 126.28 KB | 0755 |
|
ssh-keysign | File | 466.48 KB | 4755 |
|
ssh-pkcs11-helper | File | 342.27 KB | 0755 |
|
ssh-session-cleanup | File | 239 B | 0755 |
|
ssh-sk-helper | File | 338.27 KB | 0755 |
|