How to Set Up Telegram Alerts for SSH Logins on Debian

Securing your Virtual Private Server (VPS) is critical. A simple and effective way to monitor access is to receive real-time notifications for every successful SSH login. This guide provides a step-by-step walkthrough for setting up instant Telegram alerts on a Debian-based server, giving you immediate awareness of all shell access. 1. Prerequisites Before you begin, ensure you have the following: A server running a Debian-based Linux distribution. sudo or root access to the server. A Telegram account. curl and jq installed on your server. If you don’t have them, install them now: sudo apt-get update && sudo apt-get install -y curl jq 2. Create a Telegram Bot Your alerts will be sent by a Telegram Bot. ...

September 13, 2025 · 3 min