Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

hackermondev/discord-ssh-client

Repository files navigation

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)