It is instead working fine on my kfreebsd-amd64, up-to-date sid: r...@europa:~# uname -sr GNU/kFreeBSD 8.1-1-amd64
r...@europa:~# dpkg -l | grep molly-guard ii molly-guard 0.4.4-2 r...@europa:~# halt W: molly-guard: SSH session detected! Please type in hostname of the machine to halt: ^C Good thing I asked; I won't halt europa ... I think this works just because SSH_CONNECTION is properly set: r...@europa:~# env | grep -i ssh SSH_CLIENT=10.23.1.1 46891 22 SSH_TTY=/dev/ttyp0 SSH_CONNECTION=10.23.1.1 46891 10.23.1.2 22 Otherwise, I'm not sure how to identify a terminal spawned by sshd, as process grepping seems to behave differently and not to report the pseudo-terminal: root 703 /usr/sbin/sshd root 1012 \_ /usr/sbin/sshd -R lucab 1016 \_ /usr/sbin/sshd -R lucab 1017 \_ -bash root 1043 \_ su root 1050 \_ bash Ciao, Luca -- .''`. ** Debian GNU/Linux ** | Luca Bruno (kaeso) : :' : The Universal O.S. | lucab (AT) debian.org `. `'` | GPG Key ID: 3BFB9FB3 `- http://www.debian.org | Debian GNU/Linux Developer
pgpvAXdZ8qUry.pgp
Description: PGP signature