For security reason, it is highly recommended that you use SSH key to login to your server via SSH instead of using root password. In this tutorial I will explain how to use SSH key to login to your server via SSH as root user.
Disable SSH Password Authorization Tweak. For security reason, you should disable SSH Password Authorization Tweak from:
Now we will generate SSH key on a cPanel server. In WHM, navigate to:
Fill the form for the new SSH key and click Generate Key button. Key name can be anything like your server name or your name. Use a strong key password. Please note, you should not use your root password.
So, we have generated and downloaded the SSH key. To use this SSH key with putty, we need to download Pageant.
Done!! You will get logged in to your server as root user.