Linux

Manage root SSH Keys and use PuTTY

What is SSH Protocol

SSH Protocol allows you to secure file transfer and remote logins to your server over the internet. The connection via SSH is encrypted and allowing the secure connection between client program “PuTTY as example” and linux server.

This document contains:

  • Generate SSH Key from WHM
  • Configure PuTTY to secure connection to your VPS Or Dedicated Server
  • Connect To your VPS , Dedicate server using PuTTY SSH Key

You can generate ssh key from WHM by following these steps:

  1. Login to WHM as root account
  2. Navigate to Security Center link in the Home page of WHM



  3. On the Security Center Page Navigate to Manage Root’s SSH Keys link

    also in this section you can manage/delete keys if you have already generate SSH Keys before



  4. Once you click Create a New Key you have to fill the following :
    1. Key Name: The key’s name. that can be reconized by the root user. The defult name if leave it blank is id_rsa
    2. Key Password: is the password phrase that protect this public key
    3. Password (again):Re-Type the password “its important to type a strong password” Or you can Click Password Generator to allow WHM Generate Strong Password
    4. Key type:DSA — Provides quicker key generation and signing times.RSA — Provide quicker verification times.
    5. Key size:Greater key sizes are more secure, but they result in larger file sizes and slower authentication times.



    6. click Generate Key and if everythig is ok you should see result something like



  5. Now you can go again to Manage root’s SSH Keys and from the list on action you can click Manage Authorization to to authorize the key if the status is not authorized



  6. To use the PuTTY client application now you have to create PuTTY PPK format key ,click View/Download Key link from list in Private Keys



  7. from the Next Page on Private SSH Key id_rsa (PuTTY PPK format) and Enter the passphrase to unlock id_rsa for conversion “the passphrase is the password that you enter in the step number 4 on this document” and click convert ,Then you can copy the contents of the next page and save it on your local computer as ppk file extension and this file is ready to use it in PuTTY to connect to your server in secure connection.



Configure PuTTY to secure connection to your VPS Or Dedicated Server

Now after you saved your private key file ppk on your local computer ,you can now configure the PuTTY software , if you dont have the PuTTY installed on Your local computer you can download it from Download PuTTY Link, then open your PuTTY and follow these steps to prepare the PuTTY to secure connection to your server:

  1. Open PuTTY and from the session tab type your server IP



  2. Now be sure that you assign root Auto-Login User on PuTTY from Connection >> Data



  3. Now allow PuTTY to use the Private key ppk that you already prepare in the pervious section Add the file location from Connection >> SSH >> Auth >> on Private key file for authentication :




Connect To your VPS , Dedicate server using PuTTY SSH Key:

Now once you click connect the screen should show as following, prompting you to enter the password that you already created first

Using username “root”.
Authenticating with public key “imported-openssh-key”
Passphrase for key “imported-openssh-key”:
XsoftHost Support

Share

Recent Posts

Add Extra IP addresses to server configuration On Ubuntu 17.10 and later

Each failover IP address will need its own line in the configuration file. The configuration…

3 years ago

Create RAID Arrays with mdadm on Ubuntu

What is mdadm? The mdadm utility can be used to create and manage storage arrays…

4 years ago

How to change the maximum upload file size for PHP

There are several scenarios that you might need to increase or decrease your php maximum…

6 years ago

How to install Let’s Encrypt Plugin in WHM/cPanel

What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…

6 years ago

How to install python in my cPanel and add py extension

Python normally installed on all cPanel hosting server because most of Centos/red hat update system…

6 years ago

How to install and enable GUI GNOME Desktop on centos 7

Usually CentOS 7 comes in a numbers of variants, For most users, there are two…

6 years ago