https://github.com/kurama250/alert_ssh
This code allows you to send an alert to a Discord embed when a no-whitelist IP connects via ssh !
https://github.com/kurama250/alert_ssh
bash linux script shell ssh ssh-alert webhook
Last synced: about 1 month ago
JSON representation
This code allows you to send an alert to a Discord embed when a no-whitelist IP connects via ssh !
- Host: GitHub
- URL: https://github.com/kurama250/alert_ssh
- Owner: Kurama250
- License: other
- Created: 2024-07-22T22:38:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-14T20:37:28.000Z (about 1 year ago)
- Last Synced: 2025-01-18T09:33:37.350Z (about 1 year ago)
- Topics: bash, linux, script, shell, ssh, ssh-alert, webhook
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Basic Alert SSH Connection
(Programming Language - Shell)
# Tutorial to setup this code ! For LINUX (VPS or Dedicated Server)
## 1 - on Terminal
Manual installer
```shell script
apt update && apt upgrade -y
apt install curl jq -y
```
```shell script
git clone https://github.com/Kurama250/Alert_ssh.git
cd Alert_ssh/
```
## 2 - on Terminal
```shell script
nano alert.sh
```
- And you also change this line :
```bash
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 !
```shell script
bash /root/alert.sh # If you put it elsewhere then put the access path
```
Support on Discord : Discord Link3>
If you like this repository don't hesitate to give it a star ⭐ !
Licence : [Creative commons](https://creativecommons.org/licenses/by-nc-nd/4.0/deed.en) - CC BY-NC-ND 4.0 by [Kurama250](https://github.com/Kurama250)