How to Use Putty to Connect to SSH
In this tutorial we will show you how to connect to your Siteground's hosting account through SSH using PuTTY.
First, you need to login to your cPanel -> SSH / Shell Access and generate an SSH keys pair as explained at:
After you have generated your SSH Key you will see it in the bottom of the SSH / Shell Access page.
Click on the Private Key link which will get you to the corresponding page where you will be able to view and copy the key.
Then create a file called private_key.ppk, open it with notepad, paste your private key inside and save the file.
After this start puttygen.exe and click on the Load button.
Select the private_key.ppk file that you have previously created with your private key and click on the Open button.
You will be prompted for the passphrase that you have used to generate your SSH Key. Enter this passphrase and your key will be loaded.
Once your key is loaded you need to change the Type of key to generate option from SSH-2 RSA to SSH-2 DSA as shown in the image below.
After this click on the Save private key button and save it as another file (for example putty.ppk).
Next, you need to start the putty agent (pageant.exe), click on the Add Key button and select your private key:
You will be prompted to enter the key's passphrase again in order to load it in the putty agent. Then you will see your key loaded:
You can click the Close button and the agent will be minimized to the system tray.
Finally open the putty.exe software and enter your domain name or the server name in the Host Name field. The connection type should be selected to SSH and the port should be set to 18765 (for SiteGround servers).
Click on the Open button and the connection will be initiated.
Upon your first login you will be prompted to save the connection for future use by clicking Yes, connect just once by clicking No or do not connect at all by clicking Cancel. If you plan connecting to your hosting account from the same computer more than once we recommend you to click on the Yes button.
At the end you will be prompted for the username. In the login as: field enter your cPanel username and click on the Enter button of your keyboard to connect to your hosting account through SSH.