The short story is - I have configured local xmpp server to inform me about ssh connections on the FreeBSD servers with any user. And I have got 2 problems. First, the $SSH_TTY and $SSH_CONNECTION variables work fine on 9.0, but do not on those, not yet upgraded, 8.1's. Some ssh2 problems, are those compiled with the sshd, or possible to set/point them somehow? Second is, I don't get the expected warning message part output(not a huge loss, just why?). Here's the sshrc:
The missing part is:
Code:
echo "Date: `date` Remote Host: $SSH_CONNECTION User: $USER Shell: $SSH_TTY" |\
sendxmpp -s 'SSH login on the XXX server' -r 'Intruders' xxx@xxx.xxx.xxx.xxx
The missing part is:
Code:
-s 'SSH login on the XXX server' -r 'Intruders'