How to enable SSH on a VPS through WHM

December 21, 2023 / cPanel & WHM

Steps to enable SSH on VPS through WHM eukhostIf you need to allow SSH access to a standard account on your VPS or enable SSH when it is disabled in your hosting account, you can do so easily through WHM.

Follow the steps below:

  1. Log in to WHM.
    1. Open your web browser and navigate to your WHM control panel:
      https://<your-server-ip>:2087
    2. Login using your root username and password.
  2. Modify the Account Settings:
    1. In the WHM dashboard, go to:
      Home >> Account Functions >> Modify an Account.
      modify an account
    2. Select the account you want to enable SSH access for and click Modify.
      modify
    3. Locate the Shell Access checkbox in the account settings.
      shell access
    4. Check the Shell Access box to enable SSH access for the selected account.
    5. Click “Save” to apply the changes.
      save
  3. Set Up SSH Keys in cPanel:
    1. Log in to the cPanel account for the user who needs SSH access.
    2. Navigate to: Security Center >> Manage root’s SSH Keys.
      security center>manage roots SSH keys
    3. You have two options for key setup:
      1. Generate a New Key Pair:
        1. Click on “Generate a New Key.”
          generate a new key
        2. Provide a name for the key and set a password.
        3. Click Generate Key to create the public and private key pair.
          manage root's SSH keys
      2. Import an Existing Key:
        1. Click Import Key.
          import keys
        2. Paste the public and private key data from the user’s local computer.
          manage root's SSH keys
      3. Authorize the public key:
        1. Click Manage Authorization for the newly generated or imported public key.
        2. Select Authorize to enable the key for SSH access.
  4. Provide Keys to the User:
    1. Download the public and private keys from the Manage SSH Keys section.
    2. Share the keys with the user account securely.

Final Notes:
1. The user can now use the private key with an SSH client like PuTTY or OpenSSH to connect to the server.
2. Ensure that the SSH port is open in your firewall settings.
3. For additional security, consider configuring SSH key-based authentication and disabling password-based login.

In this manner, you can enable SSH on VPS through WHM. If you face any problems don’t forget to get in touch with our support team at eukhost.

Spread the love