Enable root login over SSH for Dedicated Servers on Windows/PuTTY

Note that if you intend to establish an SSH (and WHM) connection your IP address will have to be whitelisted in the firewall of your server. You can request this by posting a ticket in your User Area -> Report Other Technical Issues and provide us with your public IP address.

In order to connect to your Dedicated server via SSH with your root user on Windows you will need download and install PuTTY, Pageant and Puttygen from this link.

Once you complete the installation on your computer you will need to generate an SSH key pair via PuTTY. This process is covered in this article:

How to generate an SSH key on Windows using PuTTY?

Next, you will need to access WHM with your root user and add the public key that you've generated. After you access WHM go to Manage root's SSH Keys. Click the Import Key button. Type in a name and a passphrase for the key and paste your public key in the corresponding field. You should NOT paste your private key. Click Import to import your key.

Make sure that you also authorize this key from Manage root's SSH Keys > Manage Authorization.

Launch puttygen.exe and navigate to File -> Load Private Key, browse for your private key, open it and enter the passphrase. The passphrase was specified during the generation of the SSH key pair in cPanel.

If everything was done correctly you will receive a message saying Successfully imported foreign key. Click on the Save private key button and choose the (*.ppk) format for the file.

Open pageant.exe and load your private key in it. You may be prompted for the passphrase of your key again.

Start putty.exe and enter the following connection details in the Sessions category:

  • Host name - enter the host/IP of the Dedicated server to which you wish to connect
  • Port - the port for the connection - use 18765
  • Protocol - SSH

Press Open to establish the connection. Use root as a Username when prompted.

You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!