Knowledgebase

Configuring Remote Access to WHM

Configuring remote access to WHM (Web Host Manager) allows you to manage your server and hosting accounts from a remote location using tools like SSH (Secure Shell) or a control panel interface. Here's a basic guide to configuring remote access to WHM:

  1. SSH Access:

    • Ensure that SSH is enabled on your server. You can usually enable SSH access through your hosting provider's control panel or by contacting your server administrator.
    • Generate SSH keys if you haven't already. This involves creating a public and private key pair. You can do this using a tool like PuTTYgen on Windows or the ssh-keygen command on Unix-based systems.
    • Once your SSH keys are generated, copy the public key (id_rsa.pub) to your server. You can typically do this by appending the contents of the public key file to the ~/.ssh/authorized_keys file on the server.
    • Test SSH access by connecting to your server using an SSH client like PuTTY (on Windows) or Terminal (on macOS or Linux). Use the private key corresponding to the public key you copied earlier.
  2. WHM Access:

    • Access WHM using a web browser. You can usually do this by navigating to https://your-server-ip:2087 or https://your-domain.com:2087. Make sure to replace your-server-ip or your-domain.com with the appropriate values.
    • Log in to WHM using your username and password. These credentials are typically provided by your hosting provider or server administrator.
  3. WHM Remote Access Settings:

    • Once logged in to WHM, navigate to "Server Configuration" and select "Tweak Settings."
    • In the Tweak Settings interface, locate the "Security" section and ensure that "Allow cPanel & WHM to be accessed via proxy" is enabled. This allows you to access WHM over an encrypted connection.
    • Under the "Security" section, you can also configure additional security settings, such as requiring SSL for all remote logins and enforcing a minimum SSL version.
  4. Firewall Configuration:

    • If you're using a firewall on your server (such as CSF or iptables), make sure to allow access to WHM ports (2086 and 2087 for HTTP and HTTPS access, respectively) from your IP address or range.
  5. Additional Security Measures:

    • Consider implementing additional security measures such as IP whitelisting, two-factor authentication (2FA), and regular audits of remote access logs to detect any unauthorized access attempts.
  6. Regular Maintenance:

    • Regularly update WHM and your server's operating system to patch any security vulnerabilities and ensure that you're using the latest security features.

By following these steps, you can configure remote access to WHM securely, allowing you to manage your server and hosting accounts from anywhere with an internet connection.

  • 0 Users Found This Useful
Was this answer helpful?