This guide is for learning. Run these commands only on your own lab or servers.
Logs tell you what your server did and who tried to log in. Reading them is a core defensive skill.
journalctl
journalctl -u ssh --since today
journalctl -p err -bauth.log
sudo tail -n 50 /var/log/auth.log
sudo grep "Failed password" /var/log/auth.log | wc -lA large count of failed passwords from many addresses is normal for any public server. It is a good reason to use key login and Fail2ban.
Follow live
sudo tail -f /var/log/auth.logLogs can hold usernames and addresses. Remove them before you post any screenshot.
Want every command on one page? Linux & Enterprise Configuration Guide · $9.99View on Gumroad



