Skip to content

SSH Key Login Alert, with key specific Bash History & Telegram Alert

Notifications You must be signed in to change notification settings

sayajin101/SSH-Key-Login-Extended

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

SSH Key Login Extended

  • SSH Key Login Alert, with key specific Bash History & Telegram Alert

  • Create a Telegram bot using Botfather (https://telegram.me/BotFather)

  • Change the variables for the "telegramGroupID" & "botToken" in the "sshLoginExtended.sh" file

  • Put the "sshLoginExtended.sh" script in /etc/profile.d/sshLoginExtened.sh

  • Its recogmended that you disable password logins as this will defeat

  • the purpoise of this script since it will be bypassed if a non-key login is used.

  • To do that edit "/etc/ssh/sshd_config" and modify the below options as below

    • ChallengeResponseAuthentication no
    • PasswordAuthentication no
  • To get this to work on CentOS 5 you will need to edit the /etc/bashrc

  • above the case $TERM in insert if [ -z "$PROMPT_COMMAND" ]; then

  • and below the esac insert fi

About

SSH Key Login Alert, with key specific Bash History & Telegram Alert

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages