Skip to content

A telegram bot that let you intract with your server through ssh.

Notifications You must be signed in to change notification settings

ArtinDoroudi/SSHTerminalTelegramBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSH Telegram Bot

This bot helps you to manage and interact with your VPS through SSH protocol using telegram.

Setup Guide

Open bot.py and replace your bot information.

  • Replace TOKEN value with the token you receive after creating your telegram bot using @botfather
  • Replace BOT_USERNAME value with the username of your telegram bot.

example: Image

Open admins.txt and replace the initial number with your Telegram user ID

To get your Telegram user ID you can use @userinfobot

You should be good to go :)

Commands and Usage

After starting the bot, you have to add your server. use : /add_server [SERVER_IP] [LOGIN_USERNAME] [LOGIN_PASSWORD]

For example: /add_server 198.168.1.1 root admin

  • You can add multiple servers using this command
  • if you enter a valid IP and login information you should see your server added successfully to the robot. (and servers.txt)

You can see the list of servers you added with: /my_servers

Now you can connect to a server using: /connect [SERVER_ID]

  • Use the SERVER_ID that you received after adding a server to your server list.
  • If you missed your SERVER_ID, can find it again using /my_servers command.

after connecting to your server you can run different commands and see the output of them through your telegram bot.

Example: enter image description here

If you want to disconnect from your server use /disconnect command.

Todo

  • Add option to download files...
  • add option to upload files...
  • Add Interactive commands...
  • Optimizing the output shown by the bot...

Also contributions of all sizes are very welcome. :)))