#! /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 | 736 B | 0755 |
|
sftp-server | File | 86.27 KB | 0755 |
|
ssh-keysign | File | 330.6 KB | 4755 |
|
ssh-pkcs11-helper | File | 118.42 KB | 0755 |
|
ssh-session-cleanup | File | 239 B | 0755 |
|
ssh-sk-helper | File | 134.41 KB | 0755 |
|