shell-notifier
shell-notifier copied to clipboard
Send a notification via Discord on every new SSH login
shell-notifier
Send a notification via Discord on every new SSH login
Proposal
I wanted a notification for every time a new SSH session has begun.
Requirements
- cURL
- jq
- discord.sh (assumes you have it installed in your
$PATH)
Install
Simply add the following lines to your ~/.bashrc, ~/.zshrc or other sourced file.
# Discord webhook (put the webhook URL inside the quotes)
export WEBHOOK_URL=""
# Execute webhook
(curl -sL https://raw.githubusercontent.com/fieu/shell-notifier/master/notify.sh | bash -s "$WEBHOOK_URL" &)
Usage
Simply open a shell!
Example
