For AI agents: the complete documentation index is available at https://docs.us.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.us.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.us.ovhcloud.com/en/bare-metal-cloud/dedicated-servers/ssh-using-putty-on-windows.md.
  • English

How to use PuTTY for SSH connections and authentication

View as Markdown

Learn how to use PuTTY for secured connections to your OVHcloud service via the SSH protocol.

PuTTY is an open-source SSH client software with a graphical user interface. It was developed for Windows but is available for other operating systems as well and includes useful features, such as SSH key management.

 

Requirements

Warning

NOTE: OVHcloud provides services for which you are responsible for their configuration and management. You are therefore responsible for their proper functioning.

This tutorial is designed to help you as much as possible with common tasks. If you are having difficulty performing these actions, please contact a specialized service provider. OVHcloud cannot provide you with technical support in this regard.

 

Instructions

Content overview

 

Installing PuTTY

Download the latest release version of the PuTTY client from the official website and install it on your system (or extract the executable files). Ported versions of PuTTY might also be available via your software package manager or Homebrew.

The recommended standard installation package includes several applications that enhance the functionality of PuTTY, namely for file transfers (psftp, pscp, not covered in this tutorial) and SSH key management (PuTTYgen, Pageant, required for the corresponding parts below).

Info

The following instructions are based on a Windows operating system. The functionality of the PuTTY software itself should be consistent across operating systems. However, if you are not using PuTTY on a Windows device, you may need to consult the documentation of your operating system or the official FAQ and documentation of PuTTY.

Tip

You can have multiple instances of PuTTY and its companion tools opened simultaneously. For example, you can open one window to follow the tutorial steps and a second one to test connections.

 

SSH connections with PuTTY - Username and password

This section explains how to establish a first SSH connection to the following OVHcloud services:

 

Dedicated server or VPS

You will need the IP address of your server which you can find in the OVHcloud Control Panel and the name of the user account you want to use for this login session. Consult our "Getting started" guides if you require further details on this topic:

How to connect to a remote host

Open PuTTY and enter the login credentials into the appropriate fields.

  • Host Name (or IP address): username@IPv4_server (example: ubuntu@203.0.113.101)
  • Port: 22 (unless you have changed the SSH port number of your server)

Click Open.

Host port open

At the first connection, the "PuTTY Security Alert" window will appear, informing you about possible risks. This is usually not a concern, as long as you are connecting to a trusted host (such as your own secured server).

Click Accept to proceed. If you select Connect Once, the server's fingerprint will not be saved to the cache and the alert will show up again at the next connection. You can find further details in our SSH introduction.

The command line window (PuTTY terminal) will open and prompt you to enter the user account's password. You can paste the password string into this window with a right-click.

Note that a password prompt will not display your keyboard inputs in a PuTTY terminal. Example output:

Using username "ubuntu".
ubuntu@203.0.113.101's password:
Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-47-generic x86_64)

You can learn more about SSH connections in our SSH introduction.

PuTTY can save the parameters of an SSH connection as a "session". This allows you to connect to known remote hosts or local network devices without entering their respective details each time. Learn how to use PuTTY sessions in the corresponding section of this tutorial.

 

SSH connections with PuTTY - Username and authentication key (SSH key files)

This part of the tutorial explains how to use SSH with key pair authentication in PuTTY to connect to the following OVHcloud services:

You will need the IP address of your server which you can find in the OVHcloud Control Panel and the name of the user account you want to use for this login session. Consult our "Getting started" guides if you require further details on this topic:

Info

PuTTY stores key files in a specific format which makes them incompatible with SSH key files created with the OpenSSH client. If you want to use a private key previously created with the command line SSH client (e.g., for a server or a Public Cloud instance), you will need to convert it to the PuTTY format first.

 

Creating SSH keys (PuTTY key generator)

This step requires the PuTTY companion tool PuTTY key generator (PuTTYgen).

How to create SSH keys with PuTTYgen
Step 1: Create a key pair
Step 2: Save the private key
Step 3: Prepare the public key

Open the PuTTYgen application and select the encryption algorithm. This example uses RSA. Enter "4096" into the field Number of bits in a generated key: at the bottom.

 

SSH using putty on Windows - step 4096

Click Generate.

A progress bar will appear. Move your mouse cursor about the area below the progress bar until PuTTYgen has enough randomized data to start generating your key.

Keygen - SSH using putty on Windows

You now have a key pair, consisting of two elements:

  • Public key: The key string that will be stored on the remote host(s) to which you want to connect.
  • Private key: The key string that remains on the local device from which you connect to a remote host (or several).

Public key - SSH using putty on Windows

You can optionally edit the field Comment with your own description. It will be displayed by PuTTY tools when using the key.

 

Transferring public SSH keys to your server

The actions in this step depend on the type of service you are using and whether you are going to install a new operating system or add the key to a system that is in use.

How to add a public SSH key when installing or reinstalling an OS (OVHcloud Control Panel)

Click on the tab for your service:

Public Cloud instance
Dedicated server
VPS

Highlight and copy the entire public key string you have created in the previous step from the PuTTYgen window. (Open the corresponding private key file first if necessary.) Then use it as instructed in the corresponding section of our guide on how to create a Public Cloud instance in the OVHcloud Control Panel.

Public key highlighted

How to add a public SSH key on a running OS

Public Cloud instance
Dedicated server or VPS

Highlight and copy the entire public key string you have created in the previous step from the PuTTYgen window. (Open the corresponding private key file first if necessary.) Then follow the instructions in the appropriate guide:

Public key highlighted

 

Connecting to your server

In order to connect to a remote host (Public Cloud instance, dedicated server or VPS), you need to have created the key pair and added the public key string to your server.

  • Open PuTTY.
  • Expand the node SSH under Connection in the Category tree.
  • Expand the node Auth.
  • Click Credentials to see the corresponding settings.
  • Click the button Browse.
  • Select the private key file (keyfile.ppk) from the folder in which you have saved it.

Connect authentication credentials

Navigate back to Session in the left-hand menu. Enter the login credentials into the appropriate fields.

  • Host Name (or IP address): username@IPv4_server (example: ubuntu@203.0.113.101)
  • Port: 22 (unless you have changed the SSH port number of your server)

Click the button Open.

The PuTTY terminal will prompt you for the password of the key file. You can paste the password string into this window with a right-click.

Host port open

Note that a password prompt will not display your keyboard inputs in a PuTTY terminal. Example output:

Using username "ubuntu".
Authenticating with public key "rsa-key-example"
Passphrase for key "rsa-key-example":
Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-47-generic x86_64)

For a more convenient process, find out how to associate a key file with Pageant and save this connection in the sections below.

 

Managing SSH keys on a local device with Pageant (PuTTY authentication agent)

If you have followed the instructions above, you can access your remote host via key authentication. While the connection itself does not require a password, PuTTY will still ask for the password of the corresponding private key file.

Pageant authetication prompt

Using Pageant enables faster connections in two ways:

  • You do not need to select the private key file for each connection in PuTTY.
  • You only need to enter the passphrase for the private key file once, when the key file is opened by Pageant.

Open the Pageant application on your device. Since the Pageant key window will not open automatically, you need to (double-)click on its icon in your taskbar ("system tray" in Windows).

Pageant open app

This will open the Pageant Key List. Click the button Add Key, and select the private key file (keyfile.ppk) from the folder in which you have saved it.

Pageant add key

Enter the passphrase for this key file. The key is now on the list and will be used by PuTTY as long as Pageant is running.

Pageant enter passphrase

Even if you close this window, Pageant will continue to run in the background. It will function as long as the icon is present in the taskbar.

If you also save your connection as a session in PuTTY as described in the following section, you will be able to open remote connections with only a few clicks.

 

Using PuTTY connection sessions

PuTTY has the ability to store parameters for different connections as sessions, enabling you to establish a connection to the destination host (web hosting, server, instance, local network device) faster.

Select the relevant connection method:

Login with username and password

To store a password-based connection session, carry out the following actions:

1. Open PuTTY.

2. Enter the connection details into the field under Host Name (or IP address): username@IPv4_server (example: ubuntu@203.0.113.101)

3. If relevant, edit the SSH port number in the field under Port.

4. Enter a name for this connection into the field under Saved Sessions.

5. Click the button Save.

Save session - SSH using putty on Windows

To open a connection saved previously, carry out the following actions:

1. Open PuTTY.

2. Double-click the desired session in the list under Saved Sessions or select it and click the button Open.

Access saved session

In the PuTTY terminal window, enter the user password of the remote host.

Open session authetication

Login with username and authentication keys

To store a key-based connection session, carry out the following actions:

1. Open PuTTY.

2. Enter the connection details into the field under Host Name (or IP address): username@IPv4_server (example: ubuntu@203.0.113.101)

3. If relevant, edit the SSH port number in the field under Port.

Host port - SSH using putty on Windows

4. Expand the node SSH under Connection in the Category tree.

5. Expand the node Auth in the Category tree.

6. Click Credentials to see the corresponding settings.

7. Click the button Browse.

8. Navigate to the folder that stores your private key files.

9. Open the key file concerned.

Connect authentication credentials

10. Go back to the configuration category Session in the menu on the left.

11. Enter a name for this connection into the field under Saved Sessions.

12. Click the button Save.

Save session - SSH using putty on Windows

You can now open any previously saved key-based connection quickly from the PuTTY window or via Pageant:

PuTTY
Pageant

1. Open PuTTY.

2. Double-click the desired session in the list under Saved Sessions.

Access saved session

To edit the parameters of a session, select it from the list and click the button Load.

 

Use case example: How to use PuTTY tools to configure secure connections to OVHcloud servers (VPS, dedicated server, Public Cloud instance)

This tutorial can be applied to various scenarios and different types of connections.

By following these steps in order, you can configure your connections so that they can be opened with a few clicks:

 

Go further

Introduction to SSH

How to create SSH keys with OpenSSH

How to create SSH keys with OpenSSH for Public Cloud instances

Browse all the Dedicated Servers guides.

Browse the rest of the OVHcloud US documentation for guides on our other products and services.

Learn more about Dedicated Servers on the OVHcloud US website.

If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for a custom analysis of your project.