Get SSH IP v0.1.0

Telegram Bot for getting a command to connect to your SSH server

Simple, secure, and convenient way to get your SSH connection details via Telegram.

Python Telegram Bot SSH Open Source BSD-3

SSH Connection Helper: Get SSH IP is a Telegram Bot that provides you with the command to connect to your SSH server. Perfect for when you need quick access to your server's connection details from anywhere.

  • Telegram Bot — Simple bot interface for getting SSH connection details
  • Admin Control — Restrict access to specified Telegram chat IDs
  • Secure Configuration — Token and admins stored in JSON config
  • Easy Setup — Simple configuration and deployment
  • Lightweight — Minimal dependencies, easy to run

Create a config.json file in your project root:

{
    "token": "your-telegram-bot-token",
    "admins": [
        "chat_id1",
        "chat_id2"
    ]
}

How to get your Telegram Bot Token:

  1. Open Telegram and search for @BotFather
  2. Send /newbot and follow the instructions
  3. Copy the token provided by BotFather
  4. Paste it in the config.json file

How to get your Chat ID:

  1. Start a chat with your bot
  2. Send any message to the bot
  3. Check the bot logs or use @userinfobot to get your chat ID
  4. Add your chat ID to the admins list

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

# Install dependencies
pip install -r requirements.txt

# Create config.json with your token and admins
# Then run the bot
python app.py

Dependencies:

  • Python 3.6+
  • python-telegram-bot library

  • Language: Python 3.6+
  • Framework: python-telegram-bot
  • Platform: Linux / macOS / Windows
  • License: BSD 3-Clause

By using this software, you agree to the following disclaimer:

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 Alexander Suvorov

If you find this useful, please star the repository!