Tag Info

Hot answers tagged

1

For SSH in particular, you’ll probably need to make sure logging is enabled in /etc/ssh/sshd_config. Otherwise, it’s a vague question that depends on how you want to be alerted and the details of your system and its configuration, even how they log in. You could just tail a log file: tail -f /var/log/messages is common or journalctl -f on some Linux ...



Only top voted, non community-wiki answers of a minimum length are eligible