Server Logging Question

maxchen

Power Member
Joined
Oct 7, 2015
Messages
732
Reaction score
288
Hi. I got some technical question about ubuntu server.

I wonder where will log my ip address

So far i found that

/var/log/apache2 on access and error log
/var/log/secure
btmp

Is there any other files in server that log ip address of whoever access the server, be it ssh, sftp or web or any other.

Thanks
 
Code:
/var/log/auth.log
That contains a lot more than just plain logins, but logins are in there too. It's protected so you'll need to be root to read it:
Code:
sudo less /var/log/auth.log

You can also run commands like
Code:
last
and
Code:
lastlog
 
Back
Top