Warning: session_start(): open(/var/cpanel/php/sessions/alt-php74/sess_c5dfd0d2449e331394b7940f560fdf2c, O_RDWR) failed: No such file or directory (2) in /home/xsofthost/public_html/help/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 358

Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/alt-php74) in /home/xsofthost/public_html/help/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 358
Manage root SSH Keys and use PuTTY - XsoftHost

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


    WHM Security Center

  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


    Manage Root's SSH Keys

  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.


      Manage Root's SSH Generate Key

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


      SSH Key Image

  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


    WHM SSH Authorize the Key

  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


    WHM SSH ROOT Key

  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.


    WHM PuTTY PPK format

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


    PuTTY Session Add Server IP

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


    PuTTY Connection >> Data Auto-Login User

  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 :


    PuTTY Private key file for authentication >> Data Auto-Login User


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”:
Share on facebook
Share on twitter
Share on linkedin
Share on telegram
Share on whatsapp

Related Posts