Telegram bot that provides access to the shell.
Warning
You must not use this for fraudulent purposes. All responsibility when using TGSH rests solely with you
I often need to access my home computer (which runs Linux, by the way) when I'm away. Since I don't have a public IP at home, setting up SSH under these conditions is tricky. So, I decided to create this project. Hopefully, someone else will find it useful too.
- Go 1.24
git clone https://github.com/misshanya/tgsh
cd tgshBOT_TOKEN=token-of-your-bot
ALLOWED_USER=id-of-your-account
ALLOWED_USER is id of your Telegram account which can be obtained via other bots or Telegram clients
go build -o bot .
./bot/start - greeting and some info
any other text implements as a shell command and executes on your system