Skip to main content

Python app to launch sshd server from Telegram

Project description

SSH Telegram Manager

SSH Telegram Manager is a Telegram bot to launch ssh on demand. With this tool, you can avoid to expose your ssh port permanently on Internet.

Screenshot of a working SSH Telegram Manager bot

Installation

You can use pip pip install ssh_telegram_manager

  • Get your Telegram Bot token. This is a way to get it https://www.siteguarding.com/en/how-to-get-telegram-bot-api-token
  • Copy https://github.com/turulomio/ssh_telegram_manager/blob/main/etc/ssh_telegram_manager/ssh_telegram_manager.default to your /etc/ssh_telegram_manager/ssh_telegram_manager
  • Just run ssh_telegram_manager.
  • When ssh_telegram_manager is working fine, disable ssh daemon from start with systemctl disable ssh to hide your ssh port on Internet
  • You must use \ssh_start to launch ssh on your Telegram Bot. After 1 minute(you can change in settings) it will be closed.

Changelog

1.0.0 (2024-07-14)

  • Updated dependencies
  • Removed innecesary code

0.6.0 (2023-12-02)

  • Migrated setup.py to pyproject.toml with poetry.

0.5.0 (2023-01-28)

  • Upgraded code to python-telegram-bot-20.0 api

0.4.0 (2022-10-22)

  • Fixed bug when system time is not set correctly
  • Added ssh_telegram_manager.service for systemd systems
  • Improved spanish translation

0.3.0 (2022-08-17)

  • Now waits for Internet before connecting to Telegram to avoid errors

0.1.1 (2022-08-13)

  • Basic functionality

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ssh_telegram_manager-1.0.0.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

ssh_telegram_manager-1.0.0-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file ssh_telegram_manager-1.0.0.tar.gz.

File metadata

  • Download URL: ssh_telegram_manager-1.0.0.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.9.9-gentoo

File hashes

Hashes for ssh_telegram_manager-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0286ae7e1d56d83fb50736599edd1019c71fe8f75cdd9757dcff00bb2e6554a2
MD5 b9a4dd8b5141c63ccf780678ff76e09a
BLAKE2b-256 17119d7ca0a18d74a19d9ee29b3f59cc9bf3b0438711def625f304c98afa766b

See more details on using hashes here.

File details

Details for the file ssh_telegram_manager-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ssh_telegram_manager-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fbddf4b326f6a4616a55b331e20e0b62ef730b77d9b5663ecd9b208f1ec999f
MD5 6b6284f0dadb29d610c6235604c2dbb5
BLAKE2b-256 0ae77578614a3e21386714d2c87ecb8a04454928ddb48a58b29394a49f2117bc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page