Create an SSH key for your hosting

SSH is a secure way to connect to your hosting package. It is a better alternative to FTP. In this article we explain how you make a connection using an SSH key.

Also read:  Make an SSH connection via your computer  (with Terminal on Mac or Putty on Windows).

IN THIS ARTICLE:

Step 1: Create your SSH key

To use SSH, you need your own SSH key. You create it via your own computer. How to do this is explained below.

Follow these steps to create an SSH key with PuTTY:

  1. You can download a PuTTY private / public key generator at this address .
  2. Run the downloaded file.
  3. Click on the Generate button.
  4. To generate even more randomness, move your cursor over the blank area.
  5. Enter a password and confirm again.
  6. Click Save private key and Save public key, and save the files in a place of your choice.
  7. You must configure the private key in your SSH client. In PuTTy you do that from SSH> Auth.
  8. You can copy the public key directly from the generator window. You will find it at the top of the field under the text “Public key for pasting into OpenSSH authorized_keys file”.

Follow these steps to create an SSH key in MacOS:

  1. Open “Terminal” and enter the following command to generate a new SSH key:
      ssh-keygen -t rsa
  2. When the message “Enter file in which to save the key” appears, simply click “Enter” to save it in the suggested folder.
  3. Terminal will ask you for a password for your SSH key. Choose a strong password. Your computer will request this every time you connect via SSH.
  4. Confirm your password and you have created an SSH key.

Follow these steps to copy your SSH key to your clipboard:

  1. Open “Terminal” and enter the following command to list the SSH keys in your .ssh folder:
      ls -lh ~ / .ssh
  2. Run the following command to copy the SSH key to your clipboard:
      pbcopy <~ / .ssh / id_rsa.pub

Step 2: Enter your SSH key on the control panel

Follow these steps in the control panel:

  1. Go to “My products”> “Web hosting”> Click on “Managed hosting” next to the the domain for which you want to consult the hosting.
  2. In the menu on the left you choose “FTP & SSH” > “FTP”.
  3. Click on the toggle on the right to activate SSH.
  4. Scroll down and click on the link “Add” to add your SSH-key
  5. Add your new SSH key (or assign a key you already have in your hosting package) and click on “Add SSH key”add ssh key.

 

Updated on 13 October 2020

Was this article helpful?