Connect to your vServer via SSH with PuTTY | Speed-Net

Connect to your vServer via SSH with PuTTY

PuTTY is a free program for Windows that you use to connect to your vServer via SSH. It is worthwhile if you want to save connections or work with SSH keys in PuTTY format. For a quick connection, the Windows Terminal is also sufficient.

⏱️ Timeapprox. 10 minutes
📊 DifficultyMedium
🧰 You needWindows computer, IP address of the vServer and root password (see welcome email) or an SSH key
1

Install PuTTY

  1. Open the official PuTTY website: www.chiark.greenend.org.uk/~sgtatham/putty.
  2. Under Download PuTTY, download the installer for 64-bit Windows (file with the extension .msi).
  3. Run the file and follow the installation wizard.
⚠️ Important
Only download PuTTY from the official website. Fake download pages distribute manipulated versions that steal your passwords.
2

Set up and save the connection

  1. Start PuTTY.
  2. Under Host Name (or IP address), enter the IP address of your vServer, for example 203.0.113.10.
  3. Leave Port at 22 and Connection type at SSH.
  4. On the left, click Connection › Data and enter root under Auto-login username.
  5. On the left, click Session, enter a name under Saved Sessions, for example My vServer, and click Save.
  6. Click Open.

PuTTY Configuration with IP address, saved session and the Save and Open buttons

ℹ️ Note
PuTTY is only available in English, so this guide uses the English labels.
3

Confirm the first login

  1. On the first connection, PuTTY shows the PuTTY Security Alert window with the server’s fingerprint. Click Accept.
  2. Enter the root password and press Enter. No characters appear while typing, this is normal.
💡 Tip
To paste a copied password in PuTTY, right-click in the window. Ctrl + V does not work there.
4

Log in with an SSH key (recommended)

An SSH key is more secure than a password. PuTTY includes the PuTTYgen program for this.

  1. Start PuTTYgen from the Start menu.
  2. At the bottom, under Type of key to generate, select EdDSA and click Generate. Move the mouse in the empty area until the key has been created.
  3. Enter a password for the key under Key passphrase and Confirm passphrase.
  4. Click Save private key and save the file with the extension .ppk in a safe place.
  5. Copy all the text in the field Public key for pasting into OpenSSH authorized_keys file. This is your public key. Store it as described in the guide on SSH keys or add it on the server to the file ~/.ssh/authorized_keys.
  6. In PuTTY, open your saved session with Load. On the left, choose Connection › SSH › Auth › Credentials and select your .ppk file under Private key file for authentication.
  7. On the left, click Session and save the session again with Save.

PuTTY Key Generator with key type EdDSA, public key, passphrase and Save private key

⛔ Warning
Never share the private key (the .ppk file) and never upload it to the server. Only the public key belongs on the server. Only disable password login once logging in with the key works reliably.

How to check that everything works

After logging in you see a prompt such as [root@server ~]#. From now on, connect by double-clicking the saved session.

Common problems and solutions

Network error: Connection timed out

Check the IP address and whether the vServer is running. If you have assigned a firewall plan, check whether port 22 is allowed.

Access denied despite the correct password

Pay attention to upper and lower case and the keyboard layout. You set a new root password in the vServer Control Panel under Settings › Change Password.

PuTTY warns that the server’s key has changed.

This happens after the vServer has been reinstalled. Only accept the new key if you reinstalled the server yourself. Otherwise disconnect and create a support ticket.

Server refused our key

The public key is missing on the server or was pasted incorrectly. It must be on a single line in the file ~/.ssh/authorized_keys.

Further help

Stuck? Create a support ticket in the Support Center. We are happy to help.