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