- you need to create app https://api.slack.com/apps/new
- enable webhook on your app https://api.slack.com/apps/xxxxxxx/incoming-webhooks?
- checkout your webhook url and copy https://hooks.slack.com/services/xxxxxx/xxxxx/xxxxx
- your SLACK_WEBHOOK_URL is https://hooks.slack.com/services/xxxxxx/xxxxx/xxxxx
- create
ssh-bot
channel - Add ssh script file
sudo vim /etc/ssh/scripts/notify.sh
#!/bin/sh
url="SLACK_WEBHOOK_URL"