Simple ssh login email notification

Linux
<pre><code>echo -n 'ALERT - Shell Login (a-server) on: ' `date` `who` | mail -s Alert: Shell Login from `who | cut -d( -f2 | cut -d) -f1` admin@google.com </code></pre>

© 2026 Code0x378