Managing SSH Keys for Your Server

Learn About Managing SSH Keys for Your Server

This guide will show you how to manage SSH keys on your non-cPanel Cloud VPS or Bare Metal Dedicated server. SSH keys allow you to securely connect to your server via SSH. First, we will show you how to add your public SSH key and then remove an SSH key for a Cloud VPS account. We’ll also go over managing SSH keys for your Bare Metal Dedicated server with several options depending on your operating system (Debian, CentOS, Ubuntu).

Important: You will need to generate a public key before you can complete these steps.

Managing SSH Keys for Cloud VPS

Add SSH Key

  1. Log into your AMP (Account Management Panel).
  2. Click the Manage SSH Keys button.
    Manage SSH keys landing page
  3. Click the blue ADD KEY button.
    Managing SSH Keys - Add
  4. In the Label field put a name to help you identify what the key is for.
    How to Manage SSH Keys - Enter Label
  5. In the Public Key field paste your public key, by default it will usually be called “id_rsa.pub” and the first line should start with:
    ssh-rsa
    Managing SSH Keys - Adding Public Key

    If you do not have a public key you will need to generate one as stated earlier.
  6. Optional: there is an Install to dropdown where you can select one of your servers you would like to automatically add the key to.
    InMotion Hosting SSH - Install Key File To
  7. Click the blue ADD KEY button at the bottom of the popup once you have finished filling in the fields.
    Adding SSH Key for Cloud VPS
    Once the installation is complete, you will see a message stating “Public key successfully installed“.
    Manage SSH Keys - Public Key Installed
  8. You should now see the key you just added along with any others you may have added in the past. If you would like to install a key to one of your servers simply click the drop-down button next to the key you would like to use and select the server you want to install it to from the Install Key to dropdown and click SUBMIT. This step may take several minutes to complete.

    Install SSH Key To Server

Remove SSH Key

Now that you know how to add an SSH Key we will show you how to remove one. This is important if you want to delete access for a user.

  1. Log into your AMP (Account Management Panel).
  2. Click the Manage SSH Keys button.
    InMotion Hosting Manage SSH Keys AMP
  3. You will see your SSH Keys listed. Click the button beside the key you want to delete.
    Choosing SSH Keys
  4. The menu will drop down and list your Public Key. Click the Uninstall button to remove the SSH key.
    Remove SSH Keys - InMotion
    You are finished when you see a message stating “Public key successfully uninstalled.”
    Remove Public SSH Key Successful

Managing SSH Keys for Bare Metal Dedicated

After purchasing a Bare Metal Dedicated server, our System Administration team will configure it and send you an email that includes server details such as Hostname, IP address, and root password. You can then use this to log in via SSH and manage the server. But, there may be times when you don’t want to use the root user or need additional accounts for other people.

For example, you may want to give SSH access to an administrator but don’t want them to have the same unlimited privileges that the root user has. In this case, you can create a new user and not add them to a group with sudo privileges.

The steps for creating users and logging in with SSH keys will differ based on your chosen operating system, so we have the following guides:

Congratulations, now you know how to manage SSH keys on your Cloud VPS or Bare Metal Dedicated server! Learn more from our Cloud Server Hosting Product Guide.

Have full control of your environment and deploy the best operating and management systems that fit your needs with our reliable Cloud VPS solutions!
JB
John-Paul Briones Content Writer II

John-Paul is an Electronics Engineer that spent most of his career in IT. He has been a Technical Writer for InMotion since 2013.

More Articles by John-Paul

6 Comments

    • Apologies for the confusion. This article will be updated to reflect the current change to the AMP interface. We are currently double-checking this, but you should be able to find the SSH Access option in cPanel to manage your SSH Keys.

      • For further clarification, the article titled, “Manage SSH Keys for Cloud VPS” (https://www.inmotionhosting.com/support/website/general-server-setup/cloud-vps/manage-ssh-keys) was intended for those VPS customers who do not use cPanel and are given the option to Manage SSH keys from AMP. If your VPS account uses cPanel (which includes the cPanel interface and WHM), then SSH keys are managed from within cPanel and not within the Account Management Panel (AMP). The article will not be updated as it is accurate.

      • This article is titled “Manage SSH Keys for your Server”. It doesn’t mention cloud, but it does read ‘on your non-cPanel server’. I didn’t know what that meant so I was confused until I read your comment about finding this in cPanel. Maybe update the article with your comment?

      • The article will be updated to specific “Cloud or Bare Metal Dedicated” shortly. Thanks for reporting this.

Leave a Reply to Steve Cancel reply