Skip to content

This code allows you to send an alert to a Discord embed when a no-whitelist IP connects via ssh !

License

Notifications You must be signed in to change notification settings

Kurama250/Alert_ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Basic Alert SSH Connection

(Programming Language - Shell)

Tutorial to setup this code ! For LINUX (VPS or Dedicated Server)

1 - on Terminal

Manual installer
apt update && apt upgrade -y
apt install curl jq -y
git clone https://github.com/Kurama250/Alert_ssh.git
cd Alert_ssh/

2 - on Terminal

nano alert.sh
  • And you also change this line :
ALLOWED_IPS=("127.0.0.1" "192.168.1.1") # Add your IP WH
DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/1265070339566600233/YOUR _DISCORD_EMBED"
  • After doing this, press CTRL + X and you press Y and ENTER then you do the following commands !

3 - on Terminal

  • Edit this file in

(/root/.bashrc) or (/root/.zshrc) It all depends on your shell

  • If you do not use root then put it in the base directory in order to add this line in the files that your shell uses !
bash /root/alert.sh # If you put it elsewhere then put the access path

Support on Discord : Discord Link - Create a Ticket with bot for help

If you like this repository don't hesitate to give it a star ⭐ !

Licence : Creative commons - CC BY-NC-ND 4.0 by Kurama250

About

This code allows you to send an alert to a Discord embed when a no-whitelist IP connects via ssh !

Topics

Resources

License

Stars

Watchers

Forks

Languages