Disable Root Logins & Replace With SSH Key
Disable SSH password authentication in the SSH Password Authorization Tweak area
Setup SSH Keys & Disable root login with Password
Manage root SSH Keys and use PuTTY



----------------------------------------------------------

SSH Password Authorization Tweak whm
----------------------------------------------------------

Disabling Password Authorization



Log into WHM as the root user.




Click the Security Center option in the navigation menu.




Select the SSH Password Authorization Tweak button.


On the next page click the Disable Password Auth button.



You are finished when you see message stating
Password Auth has been disabled!
Congratulations, now you know how to disable password authorization in WHM!
######################################

----------------------------------------------------------
Manage roots SSH Keys whm
----------------------------------------------------------

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 Roots SSH Keys linkalso 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 keys 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 roots 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.



----------------------------------------------------------
Manage roots SSH Keys Putty
----------------------------------------------------------



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. > Data Auto-Login User">
  4. 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:

:
Cpanel SSH Access with PuTTY
https://blog.cpanel.com/linux-securi...th-cpanel-whm/