Show recent server logins with IP address
show last logins linux | who logged into my server | last command with ip address | last | login | auditlast -i | head -30Reads /var/log/wtmp and shows the most recent logins with user, terminal, IP address, start time and duration. Entries with still logged in are active sessions, lines with reboot mark reboots. Useful as a quick overview of who logged in when and from where.
Note: As root, lastb shows the failed logins from /var/log/btmp. Newer distributions from Debian 13 onward switch to wtmpdb.
Also searched as
- show last logins linux
- who logged into my server
- last command with ip address