This is a discord bot that I created over the weekend and I wanted to share it. It allows you to use a discord bot as an ssh client! You can run commands, setup a terminal and more is coming soon!
Language: Node.js/Typescript
Database: PostgreSQL
Hosting: Docker
It's the protocol for the ssh server which is what developers use to run code remotely on servers.
Some images:
Basically you generate this things called auth keys
on the bot with the username and password of the ssh server. You run the command $auth <username <password>
, then the bot gives you a unique key that you can use to connect to servers (so you don't have to keep retyping your username and password) $bash <server_ip> <auth_key>
or $command <server_ip> <auth_key> [command]
. The auth key will only work for you but should be kept secret. It saves the auth key with the username and password (encrypted) in the PostgreSQL database so you don't have to keep retyping your password.
Some things I might add later
- Add support for SSH keys for auth
- Add support for listing files and directories with a command
- Add ability for user to customize bot settings (change prefix and stuff)