SSH login Alert Telegram bot

SSH login Alert Telegram bot

from https://github.com/vdeville/ssh-login-alert-telegram

apt-get -y install git
cd /opt/ && git clone https://github.com/vdeville/ssh-login-alert-telegram.git

or

mkdir /opt/ssh-login-alert-telegram
cd /opt/ssh-login-alert-telegram
wget --no-check-certificate https://raw.githubusercontent.com/vdeville/ssh-login-alert-telegram/master/alert.sh
wget --no-check-certificate https://raw.githubusercontent.com/vdeville/ssh-login-alert-telegram/master/credentials.config
wget --no-check-certificate https://raw.githubusercontent.com/vdeville/ssh-login-alert-telegram/master/deploy.sh

vim credentials.config
#change USERID=999999999 //my-target profile id chat from @userinfobot
#change KEY="1111111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" //key bot api from @botfather

vim alert.sh
#change hostname -I | awk '{print $2}' if print $1 alert ip 127.0.0.1

find USERID with https://t.me/userinfobot
create telegram bot for KEY with https://t.me/BotFather

test api
https://api.telegram.org/bot1111111111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/sendMessage?chat_id=999999999&text=HelloWorld

deploy && test login ssh for Alert noti

bash deploy.sh
#if show "No zsh detected", yum/apt-get install -y zsh

 April 3, 2023

 Blog | # # #

qrcode
Facebook Facebook X / Twitter Twitter Telegram Telegram Pinterest Pinterest Email Email

Re-commend-เด็ด ๆ ต่อจาก SSH login Alert Telegram bot

ปิด Windows Security Alert ใน Taskbar

ปิด Windows Security Alert ใน Taskbar

วิธีการปิด Windows Security Alert ที่แสดงในมุมขวาล่างของ Taskbar ให้ทำตามขั้นตอนดังนี้ 1. Start -> Control Panel -> Windows Security Center 2. คลิก Ch..

How to install mod_evasive (block DDoS Apache)

How to install mod_evasive (block DDoS Apache)

Mod_evasive คือ module เสริม ชนิดหนึ่งของ apache ซึ่งทำหน้าที่ ตรวจจับ การ request ผ่าน service apache โดย มีขั้นตอนการทำงาน คือ ถ้า IP ใด มีการ reque..

  • Magicz?~