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