LinuxAbove.com

open

Home arrow Linux Commands arrow How to keep a check on remote logins

Advertisement

How to keep a check on remote logins PDF Print E-mail
User Rating: / 0
PoorBest 

To know current logged users through SSH.

who | grep -wv ‘:0’ 
The output will display the IP from which a person has logged in to system as well as the user name.

To know the history of all remote logins, use the following command:

Last  -add  |  grep  -wv  ‘0.0.0.0’
 
< Prev   Next >