ssh login notifications not being sent out
I set up ssh so that when a user logs in, a notification is sent out. The file is in /etc/ssh. It is sshrc. I notice that when I login from my lan to my internal interface on the server, I get a notification. But when I am connecting from the wan to the wan interface, there is no notification sent out.
|
Did you follow the steps as below?
Open the file ~/.bashrc in a text editor. Append the following lines: Code:
IP="$(echo $SSH_CONNECTION | cut -d " " -f 1)" |
Quote:
|
Quote:
Code:
logger -t ssh-wrapper $USER login from $ip |
Quote:
|
Quote:
removed |
All times are GMT -5. The time now is 02:20 AM. |