Skip to content
GKhan
  • Home
  • Support
    • Help Desk
    • Download
    • Online Training
    • Network Tools
  • Network Solution
  • PBX Solutions
    • IP PBX Appliance
    • Asterisk PBX
    • FAX
    • IP PBX Products
      • FXS Gateway
      • FXO Gateway
      • GSM Gateway
  • Contact me

SSH Login Email Alerts

SSH Login Email Alerts

December 7, 2017 by Gkhan

SSH Login Email Alerts The examples below send an email when someone logs into your server. For this to work, your server must be able to send mail using the mail command. CentOS Open the file ~/.bash_profile in a text editor. Append the following lines: IP=”$(echo $SSH_CONNECTION | cut -d ” ” -f 1)” HOSTNAME=$(hostname) NOW=$(date +”%e %b %Y, … Read more

Categories Linux Tags SSH Login Email Alerts Leave a comment

Categories

  • Blog
  • IP Telephony
  • Linux
  • Microsoft
  • Mikrotik
  • Network
  • Uncategorized
  • VMware

Recent Posts

  • How to configure Tata SIP trunks in VICIdial — registered and peer setups (safe examples)
  • 🛠️ VICIdial 11 AGI Error Fix: “Failed to execute /usr/share/asterisk/agi-bin/agi-DID_route.agi”
  • Fix: “Allowed Inbound Groups” Not Showing in VICIdial Campaigns
  • How to Connect VICIdial with a Grandstream UCM Trunk
  • How to Update VICIdial IP After Restoring Backup on a New Server
© 2025 GKhan • Built with GeneratePress