KNOWNHOST KNOWLEDGE BASE

Hosting Question? Find the Solution - Browse our Guides, Articles, and How-To's

How to add SSH keys for VPS?

One of the most common security tips for Linux servers is to disable password authentication for root and use SSH Keys. SSH Keys allow you to login as that specified user without the need for a password. This functionality helps you add and manage SSH Keys for the ‘root’ user on your server.

This will be the information from the public key, i.e ‘/home/example/.ssh/id_rsa.pub

If you need to create an SSH Key, check out our SSH Key Generation guide. Let’s learn, how to add SSH keys for VPS.


1. First, login into Billing Portal (my.knownhost.com) with registered email address and password.

enter username and password

2. In the Navigation tray, you can find the option “Services” click on that or you can navigate to Dashboard  Click on Services.

navigate to services knownhost billing portal

3. Locate the VPS  Click on Manage.

click on manage vps to view vps node

4. Navigate to Control Panel.

navigate to control panel of the vps

5. Scroll down a bit, navigate to Settings.

navigate to control panel settings vps root

6. Again, navigate to SSH Keys → Click on Add New SSH Key.

navigate to ssh keys and add new ssh key

7. Next, enter the Name for the SSH Key and Paste the generated public key in the text box.

enter name and paste the public key

8. Finally, click on Add SSH Key.

how to add ssh key for vps in knownhost

Once the key has been added, you can then login to the server without requiring the root password.


Conclusion

Now that we’ve gone over it, how to add SSH keys for the ordered VPS in KnownHost. This is the initial step of server hardening and general practice to secure the web server by a Linux administrator.

KnownHost offers 365 days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team ready to help you with requests should you need our assistance. You’re not using KnownHost for the best webhosting experience? Well, why not? Check with our Sales team to see what can KnownHost do for you in improving your webhosting experience.