PuTTy Tutorial

Learn how to use PuTTy to access your account via SSH

This tutorial explains how to connect to your SiteGround hosting account via SSH using PuTTY. The Software can be downloaded from this link. Download the latest available version and install the application somewhere on your machine.

Then you need to login to your cPanel -> SSH/Shell Access tool and generate an SSH key pair as explained here.

After you have generated your SSH Key you will see it in the bottom of the 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 on your computer, open it with notepad, paste your private key inside and save the file.

After this start puttygen.exe and click on the Load button.

Navigate to and select the private_key.ppk file that you have previously created with your private key and click on the Openbutton.

You will be prompted for the passphrase that you have used to generate the SSH Key. Enter the passphrase and the key will be loaded.

Once your key is loaded you need to change the Type of key to generate option to DSA. 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 pageant.exe application. Once you do so, a new icon will appear at the bottom left side of your screen indicating that the program is running. Right click that icon, then select the Add Key option.

Navigate to the location of the putty.ppk file you created in the previous steps, select it and click Open.

You will be prompted to enter the key’s passphrase again in order to load it in the application. Provide it and click OK to add the key.

Next open the putty.exe program and enter the server hostname or IP of your account in the Host Name field. You can see how to find this information here. The connection type should be set to SSH and the port should be set to 18765.

Click the Open button and the connection will be initiated.

Upon your first login you will be prompted to save the server host key in the cache. Click Yes to store the key and stop that notification from showing every time you connect via SSH to your account.

At the end you will be prompted for the username. In the login as: field enter your cPanel username and press the Enterbutton of your keyboard to connect to your hosting account through SSH.

Enable SSH/Shell Access in cPanel

How to Enable SSH/Shell Access in cPanel

How to enable SSH in cPanel

You can enable SSH access from your cPanel -> Advanced Section -> SSH/Shell Access.

Once you open the tool, you can generate a new pair of SSH keys. You will need these keys in order to configure an SSH connection from your local computer to the server. The public key is saved on the server and you will have to insert the private in your local SSH software.

You should enter your first namelast name and e-mail account. You can generate a random passphrase or enter a chosen one. Write it down. You will need it in order to establish the SSH connection. In the Allowed IP address field set the IP from which you want to establish the SSH connection. You can use this tool to find your current IP.

Once you are ready, click on the Generate button.

If you already have an SSH pair, you can directly paste the public key in the Public Key text window. Enter the Allowed IPaddress and Upload button.

In the Manage Current keys section you can view the details for the allowed SSH connections. You can check the comments, a part of the public key and the allowed IPs.

You can remove all the SSH keys or just a chosen one.

You can add more IPs through the Add IP link.

Paste the new IP in the field and click on the Add IP button.

By clicking on the Private Key link you will see the RSA Private Key. It is required in the client’s SSH software in order to proceed with the SSH connection.

In the Useful Resources section you will find links to our Knowledge Base

SSH Tutorials

SSH(Secure Shell) is a network protocol that allows secure access over an encrypted connection.

Through an SSH connection, you can easily manage your files and folders, modify their permissions, edit files directly on the server, configure and install your scripts, etc.

SSH is a part of the services, which SiteGround offers to its clients.