
Is your Linux server accessed by multiple users? If so, consider adding an SSH login notification whenever someone logs in.
The examples below send an email when someone logs into your server. For this to work, your server must be able to send mail using the mail command. You may follow this tutorial to setup Exim with Gmail if your VULTR account is not verified to send mail.
Replace YOUR_EMAIL_ADDRESS with the email address that you want to receive login notifications.
Open the file ~/.bash_profile in a text editor.
Append the following lines:
Open the file ~/.bashrc in a text editor.
Append the following lines:
0 Comments
Be the first to comment and share your perspective with the community.