Skip to content

zubfatal/ssh_notify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

ssh_notify.sh

Simple configurable script that will send an alert email when a user logs into an the system. Also prints the system and service status of the server to the user that is logging in.

Features

  • Optional email alert when someone logs into the system.
  • Define your own recipients for the alert.
  • Ignore logins from a list of IP address es.
  • Optional welcome message with system statuses.
  • Define your own services that will be tested on login.
  • Color output

Requirements

  • Linux OS with bash
  • Root access
  • Installed mail for seding mails

Usage

  1. Download the script to your /etc/profile.d folder
  2. Configure the script to match your needs
  3. Login via ssh to test it

wget https://github.com/IntellexApps/ssh_notify/raw/master/ssh_notify.sh -O /etc/profile.d/ssh_notify.sh && chmod +x /etc/profile.d/ssh_notify.sh

Credits

Script has been written by the Intellex team.

About

Email notification for ssh logins.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%