Report this

What is the reason for this report?

How can I set up a SFTP login email notification?

Posted on June 28, 2020

I have had to let guys who assist me go through these tough time and I have had to delegate or create new SFTP logins for some of the clients who think they can handle that part of the work themselves.

I am able to log and email SSH access into server. When they log in, I get their IP and know who’s login is sent via email. I would like to do the same via SFTP access. When they use Filezilla or similar and SFTP, I’d like to at least get the notification (I don’t care so much about their IP address)

Any assistance or recommended tools will be highly appreciated.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

I believe you can use the script provided by Bobby here in this question since SFTP uses the ssh protocol to access the server and this should create the alert for you.

https://www.digitalocean.com/community/questions/ubuntu-20-04-set-up-alert-email-for-ssh-access

Another good tutorial can be found in DEV comminity

https://dev.to/aws-builders/how-to-monitor-unauthorized-ssh-attempts-on-your-server-get-email-alert-7cp

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.