I would like my server to send a mail to me when someone connects remotely over
ssh to my server.
who only gives me back the Username, TerminalID and Date. I cannot use only that, I need to check for the IP someone uses to connect to me.
So the triggering part would be an external IP.
How can I achieve that?
EDIT: who -h gives back the IP adresses of the ssh sessions. Thanks to Archemar