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.
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.
- Updated dependencies
- Removed innecesary code
- Migrated setup.py to pyproject.toml with poetry.
- Upgraded code to python-telegram-bot-20.0 api
- Fixed bug when system time is not set correctly
- Added
ssh_telegram_manager.service
for systemd systems - Improved spanish translation
- Now waits for Internet before connecting to Telegram to avoid errors
- Basic functionality