hackermondev / discord-ssh-client

A discord bot that can be used as an ssh client!

Home Page:https://discord.com/oauth2/authorize?client_id=866294717641654335&scope=bot&permissions=2214980673

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord SSH Bot

public version invite

upvote on top.gg?

Introduction

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!

My Stack

Language: Node.js/Typescript

Database: PostgreSQL

Hosting: Docker

What is an ssh client?

It's the protocol for the ssh server which is what developers use to run code remotely on servers.

Images

Some images:

image image

How It Works

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.

Roadmap

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)