How To Import The Existing SSH Key In WHM?
Would you like to know how to import an existing SSH key in WHM? Importing existing RSA/ED25519 Keys in WHM is simple regardless if you are changing hosting providers or just want to use your preferred server keys. Importing SSH keys is a best practice for web administrators to avoid brute-force attacks. Below are the steps to import, authorize, and use your existing keys for root access.
Log into WHM and go to Home > Security Center > Manage Root’s SSH Keys.
Then, perform the following steps:
- Select Import Key
- In the first field, put a Name for this key
- Place the public key in the appropriate field
- Select Import
You will see the fields Password and Private Key, which we will not use.
Now you will authorize this key for the root user. For this, go to Manage root’s SSH keys and click on the Manage Authorization option.
And the last step is to click on the Authorize button. After that, you will be able to login to your server as root using this key.
Conclusion
You have improved the security of your server and made it easier to log in by importing your existing SSH key. However, always be sure to keep your private key safe and consider disabling password authentication completely. Now that your key-based access is active, you can manage your keys in WHM to administer your infrastructure with confidence.