0

I have a Linux development server in Digital Ocean based on Ubuntu Xenial 16.04. I use this mostly for development.

I created a script on /etc/profile.d/ to trigger an SMS message (based on Node.js via Twilio) to alert me whenever someone logs into the server on an interactive shell.

How do I do the same for non-interactive sessions? i.e.: If I use WinSCP to connect to the server and transfer files to/from the server, the script doesn't execute. I use Codeanywhere to code on my server, via SSH (SFTP), so ideally whenever I login via CodeAnywhere I'll get the same alert.

Any thoughts?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.