I am using a server running the Debian operating system. Is there a way i can check who logged in to the server, i mean the past logins . I would like to do this to monitor the security on the server. Is this information stored somewhere ?
Thank You
|
feedback
|
|
The You can use the
| |||
|
feedback
|
|
User logins are stored in /var/log/auth.log by default on debian systems | |||
|
feedback
|
|
/var/log/auth.log contains authentication information, including logins. Try 'cat /var/log/auth.log | grep ssh' for SSH logins. | |||
|
feedback
|
|
Use the "last" command, which shows a list of the last logged in users:
man lastfor more information :) | |||
|
feedback
|