🔔 🔔 🔔 Duyuru: 24. Yılımıza özel indirimler sizleri bekliyor ! Kampanya Kodu : TDATA2024 | Detaylı bilgi için tıklayınız.

Enable SSH and WHM login Alert emails


Enable SSH and WHM login Alert emails


We can enable SSH and WHM login alerts to your email accounts. For security reason, it is necessary to enable these options. Use this security knowledge base to configure security options.

Enable SSH and WHM login Alert emails

 

Enable WHM login Alerts

You can enable this option in CSF firewall configuration.

/etc/csf/csf.conf

WHM >> Plugins >> ConfigServer Security&Firewall > csf – ConfigServer Firewall”.

Just click the “Firewall Configuration

# Send an email alert if anyone accesses WHM via root. An IP address will be

# reported again 1 hour after the last tracked access (or if lfd is restarted)

LF_CPANEL_ALERT = “1″

 

Enable SSH login Alerts

Login to your server as root user

cd /root

vi .bashrc

Scroll to the end of the file then add the following:

echo ‘ALERT – Root Shell Access (YourserverName) on:’ `date` `who` | mail -s “Alert: Root Access from `who | cut -d”(” -f2 | cut -d”)” -f1`” you@yourdomain.com

Replace YourServerName with the handle for your actual server
Replace you@yourdomain.com with your actual email address

Save that file.

Bu cevap yeterince yardımcı oldu mu?

Diğer Dökümanlar


  • cPanel security settings checklist

    You always use cpanel recommended Security Settings to avoid hacking and other suspicious activity. These  cPanel Server Hardening & Security tips will help prevent from hacking. cPanel...

  • sendmail Not running with correct effective GID

    Wed Sep 04 04:11:11 2014] [error] [client 11.44.33.22] sendmail: Not running with correct effective GID.  Is sendmail binary setgid mailtrap?, It may be the problem with your sendmail binary...

  • How to enable NAT behind the cpanel ?

    Most of webhosting providers currently used NAT service for their users. When you install cPanel & WHM, the installer will detect whether your server is on a NAT-configured network. If the...

  • Unable to allocate memory for pool

    Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0 APC or Alternative PHP Cache (APC) is a free and open opcode cache for PHP. APC allows for caching of opcode generated...

  • Install FFmpeg, Mplayer, Mencoder, MP4Box, Flvtool2

    You can use the following tutorial to install ffmpeg and other video modules in your centos server. FFmpeg is an audio/video conversion tool. It includes libavcodec, the leading open source codec...