Auto Send An eMail Notification When SSH Login

View vultr lastest coupon promotion code - lastest giftcode

Is your Linux server accessed by more than one user? If so, consider adding an SSH login notification whenever someone logs in.

Enable SSH Login Notification on Linux

With this Tutorial below , we cam make VPS auto send an email when someone logs into 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.

Change YOUR_EMAIL_ADDRESS to your email .


Open the file ~/.bash_profile and edit it.

Add the code below to the end of the file:

In VPS Ubuntu/Debian

Open the file ~/.bashrc and add the code below to the end of that file

Hope this usefull for you.

Source: VULTR