#! /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 | 103.13 KB | 0755 |
|
ssh-keysign | File | 426.32 KB | 4755 |
|
ssh-pkcs11-helper | File | 346.09 KB | 0755 |
|
ssh-session-cleanup | File | 239 B | 0755 |
|