Hostrs

< All Topics
Print

SSH Password Authorization Tweak

  • Log in to your whm>>security centre>> SSH Password Authorization Tweak

How to access the WHM?

WHM listens on the port number 2086 and 2087 securely, so it’s recommended that it be accessed on these port numbers.

http://ip-address:2086 — OR – https://ip-address:2087/

You may get SSL warning, accept it and save certificate in browser so that it’s not repeated every time.

Now enter the username as ‘root’ and password same as what was set initially during OS installation. There will be six initial steps to proceed further:

  • Initial setup: WebHost Manager End User License Agreement has to be accepted.
  • Setup Networking: Enter the contact information and set hostname with below command in shell./usr/local/cpanel/bin/set_hostname <hostname>Also setup the resolver and enter the DNS server’s IP address.Warning : Set a reliable resolver here as your setup entry will be shown in file /etc/resolve.conf
  • Setup IP Addresses: Enter IP address with proper subnet mask and gateway.
  • Name server Configuration: In this section, we’ll configure the name server. Nameserver populates your server’s DNS information by the Internet to allow users to access website from your server.
  • Services: In this section, we configure the services which are used by our clients on the server, including:
    • FTP Configuration
    • Mail Configuration
    • cPHulk Brute Force Protection configuration.

    Install a Common Set of Perl Modules- the most beautiful thing provided by cPanel.

  • Setup quotas: This is the final stage of the Initial Setup process. This allows you to select if you wish to track/monitor disk usage on your server.Now initial setup has been completed and now we’ll setup WHM and configure some tweaking:

1. Home »Server Configuration »Server Time: Setup your country time zone as per your location.Home-a

  • Home »Server Configuration »Tweak Settings: Next we’ll configure some tweak setting and security settings in WHM.
    • Enable ioncube on the server if required, because it’s prerequisite need of Softaculous.WHM configuration
    • Setup mail sending limitscSetup
    • Prevent nobody from mail sendingdPrevent
  • Home »Security Center »Compiler Access: Disable the compiler access on the server for security reasons.Compiler access setting in whm
  • Home »Security Center »cPHulk Brute Force Protection: Enable the cPHulk protection on the server to protect from DDoS like attacks.cPHulk Brute Force ProtectionNote: After enabling cPHulk on the server, first allow or whitelist your IP in cPHulk, otherwise if you are blocked, you will be restricted from accessing cPanel.
  • Home »Security Center »Shell Fork Bomb Protection: Enable shell fork bomb protection in WHM.Shell Fork Bomb Protection
  • Home »Security Center »SSH Password Authorization Tweak: Here we can setup SSH key based authentication and disable password based login if required. This will protect our server better.SSH Password Authorization Tweak in whm installation
  • Home »Service Configuration »Apache Configuration »Global Configuration: Setup all the apache global configuration here- we can setup limit on the number of connections, maximum retry and number of active user limits here.Configuration
  • Home »Service Configuration » FTP Server Configuration: In FTP server configuration tab, we can setup FTP server configuration. We should prevent ‘root’ user from accessing FTP.FTP Server Configuration in cPanel & WHM
  • Home »Service Configuration »PHP Configuration Editor: PHP configuration related tweaking changes from PHP configuration editor option can be done here. We can setup limit on parameters like upload_ max_ file size, memory _limit, disable _functions etc.PHP configuration in cPanel & WHMUsing above steps, we can setup our WHM securely on the server