quasineutral / ts_ssh_notify

Tailscale SSH notifier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tailscale SSH Notifier

Executes Discord webhook request when a new tailscale ssh session is discovered on your tsrecorder instance.

This is a tailscale discord ssh notifier that monitors for new ssh sessions by monitoring the directory where the .cast files are generated.

I imagine at some stage tailscale might add a webhook event for a ssh node login event. At that point this script will be redundant.


Installation

$ git clone https://github.com/quasineutral/ts_ssh_notify
$ cd ts_ssh_notify
$ docker build .

Create a .env file with the following content:

DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/...

Note:

There isn't much error handling and this hasn't been extensively tested.

About

Tailscale SSH notifier

License:MIT License


Languages

Language:Python 90.4%Language:Dockerfile 9.6%