Email Alert When User Login Using SSH

On web servers, you may need to get email alert when someone login to your server using SSH. To do this edit file

Add

In above, replace [email protected] with your actual email address. You need a mail server installed on your server for this to work.

If you want to log to a file, add

See SSH

Leave a Reply

Your email address will not be published. Required fields are marked *