Skip to content

Commit 627d54e

Browse files
authored
Merge pull request #16 from airtower-luna/openssh-9.8-compat
ssh-session-open: Check for OpenSSH 9.8 sshd-session
2 parents 04ddc5e + 79244a7 commit 627d54e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22
# Check for active SSH connections/sessions *to* the system
33

4-
pgrep -f 'sshd(\.[^:]+)?:.*pts' >/dev/null && exit 254
4+
pgrep -f 'sshd(-session)?(\.[^:]+)?:.*pts' >/dev/null && exit 254
55
exit 0

0 commit comments

Comments
 (0)