Code Monkey home page Code Monkey logo

notify-ssh-login's Introduction

SSH-NOTIFY

Ce script à pour but de vous signaler qui se connecte sur votre serveur via une notification sur discord. Lors d'une connexion ssh sur votre serveur.

Dépendances

1. Mise en place du script.

  1. Configurer un webhook dans le channel Discord souhaité
  2. Installer les packages JQ , curl, git sudo apt install jq curl git dnsutils -y
  3. Clonez le repo git clone https://github.com/T-TutoRapide/notify-ssh-login/.
  4. Se rendre dans le dossier notify-ssh-login cd notify-ssh-login.
  5. Déplacer le fichier ssh-notify.sh dans le dossier /etc/profile.d/ mv ssh-notify.sh /etc/profile.d/
  6. Rendre le script exécutable chmod +x /etc/profile.d/ssh-notify.sh
  7. Ajouter le lien de votre webhook discord dans le script.
    Chercher la ligne WEBHOOK="votre_url" et remplacer votre_url par le lien du webhook. sudo nano /etc/profile.d/ssh-notify.sh.
    Pour sauvegarder : ctrl +x taper y
  8. Redémarrer le service ssh sudo systemctl restart sshd.
  9. Et voilà le tour est joué.

2. Aperçu

Screenshot

Contributeurs


TutoRapide

💻

zechaos

🛠️

Janastinou

🛠️

AbaFranklin

🛠️

Fait avec 💖 par TutoRapide

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.