|
||||||
| Linux Security Make your Linux box more secure - Learn How |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
you can even go an easier route.
in the .bashrc file do something like Code:
mail -s "Root Login" <email address> you can see the varibles that are set in the shell, one of them should be the remote ip address i can't remember the varible off the top of my head but if on the command like put in $VARIBLENAME it'll print the contents out, so you could also do something like Code:
mail -s "$VARIBLE1 has logged in as root" <email address> |
| Sponsored Links |
|
|||
|
that one is IPv6 Forumat, but you can see from that, the ip address (IPv4) is 10.225.66.192 (that's a private ip adress space - so jordan was testing it on a local network =). 2438 will be the source connection port (from the machine that made the connection) and 22 is the destination port, 22 in this case is ssh =)
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|