ssh-login-notify
A Discord message every time someone logs in over SSH.
Shows who logged in, from what IP, roughly where that IP is, and whether they used an SSH key or a password. Works on Linux, the BSDs and macOS. It's one shell script with no dependencies beyond curl or wget.
Only used in this page to build the command. It's never sent anywhere. Leave it blank and the installer will ask for it.
No curl? wget -qO- works the same way:
Tip: a command with the webhook in it ends up in your shell history, so leave the box blank if that matters.
What you get
- Green for key logins, orange for passwords, red for no auth, and a โ ๏ธ title for root.
- The alert goes out in the background, so a slow network or Discord outage never holds up a login.
- Ignore lists, @here or role pings, and an ipinfo token can be set in
/etc/ssh-login-notify.conf.
Manage
sudo ssh-login-notify test
Re-run the install command at any time to update. Your config is kept.