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 Delete Issabel Call Recording Files
  • How to Create IVR Prompt Audio Files Using Online Tools
  • How to Easily Configure WireGuard Clients on Android and iOS Using QR Codes
  • Troubleshooting: Fixing NMTUI Not Working on CentOS 7
  • How to Fix “No Bootable Device Found” Error in PNETLab for QEMU Images
© 2025 GKhan • Built with GeneratePress