8000
Skip to content

diegogodoy06/install-ssh-login-alert-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

🚨 SSH Login Alert via Telegram

This Bash script sends notifications to a Telegram chat every time a user logs in via SSH on the server.

🔧 Requirements

  • Operating System: Linux (Debian/Ubuntu)
  • Dependencies:
    • curl
    • jq
  • Telegram Credentials:
    • Bot Token (generated from BotFather)
    • Chat ID (found via the /getUpdates method)

⚙️ Installation

  1. Clone the Repository:

    git clone https://github.com/diegogodoy06/install-ssh-login-alert-telegram.git
    cd install-ssh-login-alert-telegram
    
  2. Grant Execution Permissions to the Script:

     chmod +x install-ssh-login-alert.sh
    
  3. Run the Script:

      ./install-ssh-login-alert.sh

📩 Example Notification

*New SSH Login*
🖥️ Server: server.example.com
👤 User: user
📍 IP: 192.168.1.100
📅 Date/Time: 22/04/2025 14:30:00

About

Bash script to send SSH login alerts via Telegram

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0