get_ssh_ip v0.1.0

Telegram Bot for getting SSH server connection commands

Simple Telegram bot that provides SSH connection commands to authorized users.

Python Telegram Bot SSH Utility Security

get_ssh_ip — Telegram Bot for getting a command to connect to your SSH server. Simple bot that provides SSH connection commands to authorized users.

  • Telegram Bot Integration — Access SSH commands via Telegram
  • Admin Authorization — Only authorized users can access the bot
  • Simple Configuration — Easy setup with JSON config file
  • Lightweight — Minimal dependencies, easy to deploy

# Clone the repository
git clone https://github.com/aixandrolab/get_ssh_ip.git
cd get_ssh_ip

Configuration:

Create config.json file in the project root:

{
    "token": "your_telegram_bot_token",
    "admins": [
        "chat_id1",
        "chat_id2"
    ]
}

Run:

python app.py

  1. User sends /start command to the bot
  2. Bot checks if the user's chat_id is in the admins list
  3. If authorized, bot returns SSH connection command
  4. If not authorized, bot denies access

Logo:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Links


Created by Aixandrolab

Copyright © 2024, A.A. Suvorov. All rights reserved.

Licensed under BSD 3-Clause License