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

SSH login on web-01
๐Ÿ‘ค Account
deploy
๐ŸŒ IP address
203.0.113.42
๐Ÿ” Auth method
๐Ÿ”‘ SSH key (passwordless)
๐Ÿ“ Location
Sydney, NSW, AU
๐Ÿข Network
AS13335 Example ISP
๐Ÿ—๏ธ Key
SHA256:+DiY3wโ€ฆ (ED25519)

Manage

sudo ssh-login-notify test

Re-run the install command at any time to update. Your config is kept.