Short answer: How to use PuTTY with a VPS: install PuTTY 0.85 from the official chiark.greenend.org.uk page, type the server's IP in Host Name, keep port 22 and SSH, click Open, check the host key fingerprint, then log in as root or your user. Next, make an Ed25519 key in PuTTYgen and add it to ~/.ssh/authorized_keys.
This guide shows how to use PuTTY to connect to a VPS from Windows: the first SSH login, saved sessions, key-based logins with PuTTYgen and Pageant, file transfer with PSCP and PSFTP, SSH tunnels, and fixes for the errors people hit most.
You need about 30 minutes, a Linux VPS and the login details your provider sent. Windows servers work differently (you use Remote Desktop, covered at the end).
What you need before you connect to a VPS
The provider's welcome email or control panel tells you how to access the VPS. Collect four things:
- The server's public IPv4 address, for example
203.0.113.10(some plans also have IPv6). - The SSH port: 22, unless the provider or you changed it.
- A user name. Most images give you
root, which has full root access to the server; some create a named user instead. - A password, or an SSH key added when you ordered the server.
The commands later in this guide assume Ubuntu or Debian, the two images providers offer most. As of November 30, 2026, 158 of the 192 providers that publish their template lists offer Ubuntu and 144 offer Debian:
| Operating system | Providers offering it | Share |
|---|---|---|
| Ubuntu | 158 | 82% |
| Debian | 144 | 75% |
| AlmaLinux | 121 | 63% |
| Windows Server | 114 | 59% |
| CentOS / CentOS Stream | 109 | 57% |
| Rocky Linux | 100 | 52% |
Counted over the 192 of 199 providers that publish their OS template list; updated November 30, 2026.
On AlmaLinux and Rocky Linux the commands are the same, except the admin group is wheel instead of sudo and the SSH service is called sshd instead of ssh.
Step 1: Download PuTTY from the official site
The official home of PuTTY is chiark.greenend.org.uk/~sgtatham/putty. As of October 2026 the latest release is 0.85, published in August 2026.
- Open the latest release page.
- Download the MSI installer that matches your PC:
putty-64bit-0.85-installer.msifor most computers,putty-arm64-0.85-installer.msifor Windows on Arm, orputty-0.85-installer.msifor old 32-bit systems. - Optionally, compare the file's hash with the SHA-256 checksum file linked from the same page:
Get-FileHash .\putty-64bit-0.85-installer.msi -Algorithm SHA256
- Run the installer. By default it puts the programs in
C:\Program Files\PuTTY\and adds Start menu entries.
The package contains more than the terminal:
| Program | What it does |
|---|---|
putty.exe |
The SSH terminal you log in with |
puttygen.exe |
Creates and converts SSH keys (.ppk files) |
pageant.exe |
SSH agent that keeps unlocked keys in memory |
pscp.exe, psftp.exe |
File transfer over SSH, one-shot or interactive |
plink.exe |
Command-line SSH for scripts and tunnels |
Each program is also offered as a standalone .exe if you cannot install software.
Step 2: Connect to your VPS for the first time
Here is how to connect to a VPS server with PuTTY:
- Start PuTTY. The Session category opens.
- In Host Name (or IP address), type the IP, for example
203.0.113.10. You can also type[email protected]to skip the user name prompt. - Leave Port at
22and Connection type at SSH. - Click Open.
On the first connection PuTTY shows a PuTTY Security Alert: the host key is not cached for this server, so PuTTY cannot yet tell whether it is the real one. The alert shows a fingerprint such as ssh-ed25519 255 SHA256:....
To verify it, open the provider's web console (the browser-based VNC or serial console in the control panel), log in there, and run:
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub
256 SHA256:3qJx...Yt0 root@vps1 (ED25519)
If the SHA256 values match, click Accept to store the key. Connect Once logs in without storing it, and Cancel aborts.
- At
login as:typeroot(or your user) and press Enter. - Type the password. Nothing appears while you type; that is expected. Press Enter.
You land at a shell prompt such as root@vps1:~#. Every VPS SSH login after this one skips the alert, because the key is now cached.
Daily work as root is risky, so create a normal user with sudo rights while you are here:
adduser deploy
usermod -aG sudo deploy
Log out with exit and log back in as deploy to confirm the account works.
Step 3: Save the session
- In Session, enter the host name or IP again.
- Go to Connection > Data and set Auto-login username to
deploy. - Go back to Session, type a name such as
my-vpsin the Saved Sessions box and click Save.
Double-click my-vps to connect from now on. To change the defaults for new sessions, select Default Settings, adjust the options and click Save.
Step 4: Generate an SSH key with PuTTYgen
Bots try password lists against every new IP within minutes, which is why key logins come first in any VPS security checklist.
- Start PuTTYgen from the Start menu.
- Under Parameters, select EdDSA and pick Ed25519 as the curve. (Choose RSA with 3072 or 4096 bits only if the server is too old for Ed25519.)
- Click Generate and move the mouse over the blank area until the bar fills.
- Change Key comment to something you will recognize, such as
laptop-2026. - Enter a Key passphrase twice. It encrypts the private key file on disk.
- Click Save private key and store the
.ppkfile, for exampleC:\Users\you\keys\vps-key.ppk. - Copy the whole text in the box Public key for pasting into OpenSSH authorized_keys file. It is one line that starts with
ssh-ed25519 AAAA.
Do not use the file written by Save public key for the server. That file is in the multi-line SSH-2 format (---- BEGIN SSH2 PUBLIC KEY ----), which OpenSSH's authorized_keys does not accept.
Step 5: Add the public key to your VPS
Here is how to add an SSH key to a VPS by hand. Log in as the user the key is for (here deploy) and run:
mkdir -p ~/.ssh
chmod 700 ~/.ssh
nano ~/.ssh/authorized_keys
Right-click in the PuTTY window to paste the key as a single line, then save with Ctrl+O, Enter and Ctrl+X. Lock down the file:
chmod 600 ~/.ssh/authorized_keys
If you created the file as root for another user, give it back to that user with chown -R deploy:deploy /home/deploy/.ssh. Many providers also let you paste a public key in the control panel when you order or reinstall a server, which installs it for the image's default user.
Step 6: Load the private key in PuTTY
- Load the
my-vpssession (select it and click Load). - Go to Connection > SSH > Auth > Credentials.
- Next to Private key file for authentication, click Browse and pick
vps-key.ppk. - Return to Session and click Save.
- Click Open. PuTTY reports
Authenticating with public key "laptop-2026"and asks for the key passphrase, not the server password.
Once the key works, keep that session open and turn off password logins. On Debian and Ubuntu, files in /etc/ssh/sshd_config.d/ are read first and the first value wins, so a cloud-init file there can keep passwords enabled. Add a file that sorts first:
echo 'PasswordAuthentication no' | sudo tee /etc/ssh/sshd_config.d/00-keys-only.conf
sudo sshd -T | grep -i passwordauthentication
sudo systemctl reload ssh
sshd -T prints the value the server will actually use: it should read passwordauthentication no. Test a new login before closing the old session.
Convert an OpenSSH key for PuTTY
If you already have a key made with ssh-keygen (for example id_ed25519 from a Mac or the Windows OpenSSH client), you don't need a new one:
- In PuTTYgen, choose Conversions > Import key and select the private key file.
- Enter its passphrase if it has one.
- Click Save private key to write a
.ppk.
The reverse, Conversions > Export OpenSSH key, turns a .ppk into a file that ssh on Windows, macOS or Linux can read. PuTTY 0.75 and later save keys in PPK version 3; if an older tool rejects the file, Key > Parameters for saving key files lets you write version 2.
Step 7: Let Pageant hold your key
Pageant is PuTTY's SSH agent. You unlock a key once per Windows login, and PuTTY, PSCP, PSFTP and Plink use it automatically.
- Start Pageant. It appears as an icon (a computer wearing a hat) in the notification area.
- Right-click the icon, choose Add Key, select
vps-key.ppkand type the passphrase. - Connect with your saved session. No passphrase prompt appears.
To load the key at every login, put a shortcut in your Startup folder (shell:startup) with this target:
"C:\Program Files\PuTTY\pageant.exe" "C:\Users\you\keys\vps-key.ppk"
How to use PuTTY keepalives to stay connected
Idle sessions often drop because a router or firewall forgets quiet connections. PuTTY's fix is the keepalive setting:
- Load your session.
- Open the Connection category.
- Set Seconds between keepalives (0 to turn off) to a value shorter than the idle timeout. The PuTTY manual suggests 300 for a firewall that cuts connections after ten minutes; 60 is a common choice when you don't know the timeout.
- Save the session.
On an unreliable network keepalives can backfire: a short outage that would have passed unnoticed now breaks the session.
How to copy and paste in PuTTY
PuTTY does not use Ctrl+C and Ctrl+V:
- To copy, select text with the left mouse button. It is copied as soon as you release the button.
- To paste, click the right mouse button or press Shift+Insert.
- Ctrl+C sends an interrupt to the program running on the server, which is how you stop a command.
If you prefer different mouse behavior, change it under Window > Selection.
Step 8: Transfer files with PSCP and PSFTP
PSCP copies files in one command; PSFTP opens an interactive session. Run both from PowerShell or Command Prompt; if Windows cannot find pscp, add C:\Program Files\PuTTY\ to your PATH.
Upload a file, download one, and copy a folder recursively:
pscp C:\Users\you\site.zip [email protected]:/home/deploy/
pscp [email protected]:/etc/os-release .
pscp -r C:\Users\you\project [email protected]:/home/deploy/
Add -P 2222 for a non-standard port (capital P), -i C:\Users\you\keys\vps-key.ppk for a key when Pageant is not running, or use a saved session name in place of the host: pscp my-vps:/etc/hosts ..
PSFTP works like a classic FTP client:
psftp [email protected]
psftp> cd /var/www
psftp> lcd C:\Users\you\Downloads
psftp> put index.html
psftp> get -r backups
psftp> quit
cd and dir act on the server; lcd changes the local folder. put -r and get -r copy whole directories, and mput and mget take several files or a wildcard such as *.log.
Step 9: Forward a port through an SSH tunnel
A local port forward lets you reach a service that only listens on the VPS's localhost, such as a database or an admin panel on port 8080, without opening that port to the internet.
- Load your session and go to Connection > SSH > Tunnels.
- In Source port, type
8080. - In Destination, type
localhost:8080. - Keep the Local option selected and click Add. The list shows
L8080 localhost:8080. - Save the session in Session, then click Open.
While the session is open, http://localhost:8080 in your Windows browser reaches port 8080 on the server. Dynamic with source port 1080 and no destination turns PuTTY into a SOCKS proxy instead. From a script, use plink my-vps -L 8080:localhost:8080.
Common PuTTY errors and how to fix them
"Network error: Connection refused"
The server answered, but nothing accepted the connection on that port. Check, in this order:
- The port in PuTTY matches the SSH port on the server.
- The SSH service is running. From the provider's web console:
sudo systemctl status ssh(sshdon AlmaLinux and Rocky Linux). - No firewall rule or fail2ban ban is rejecting your IP. A rule that rejects gives this error; one that silently drops causes a timeout instead.
"Network error: Connection timed out"
PuTTY got no reply at all. Usually the IP is wrong, the VPS is off or still rebooting, or a firewall silently drops the packets. That can be UFW on the server (fix it from the web console with sudo ufw allow OpenSSH), the provider's cloud firewall or security group, or a network (office, hotel, school) that blocks outgoing port 22. Trying from another connection, such as a phone hotspot, tells you whether the block is on your side.
"Server refused our key"
The server rejected the key PuTTY offered. The manual notes this is almost always a server-side configuration problem. Typical causes:
- The key went into a different user's
authorized_keys(root's, while you log in asdeploy). - The key was pasted with line breaks, or from the SSH-2 format file instead of the one-line box.
- Permissions are too open:
~/.sshmust be 700,authorized_keys600, and the home folder must not be writable by others.
The server log usually names the reason: sudo journalctl -u ssh -n 50.
"No supported authentication methods available"
PuTTY ran out of ways to log in. It typically reads (server sent: publickey): the server accepts only keys and PuTTY had none to offer. Load the .ppk in Connection > SSH > Auth > Credentials or add it to Pageant. If the key is lost, log in through the provider's web console and add a new public key there.
Two more messages come up often. WARNING - POTENTIAL SECURITY BREACH! means the host key changed since your last visit. After you reinstall or rebuild a VPS this is expected; verify the new fingerprint as in Step 2 before accepting it. Network error: Software caused connection abort is Windows closing the connection, often after a network drop; keepalives can help.
PuTTY alternatives: Windows OpenSSH, Terminal and RDP
You don't need PuTTY to SSH into a VPS. Windows, macOS and Linux all ship an OpenSSH client, and Windows servers use a different protocol altogether.
The built-in Windows OpenSSH client
Microsoft ships OpenSSH as a Windows feature on demand starting with Windows 10 build 1809 and Windows Server 2019. If ssh is not recognized in PowerShell, add OpenSSH Client under Settings > System > Optional features (Settings > Apps > Optional features on Windows 10). It includes ssh, ssh-keygen, ssh-agent, scp and sftp:
ssh-keygen -t ed25519
ssh [email protected]
scp .\site.zip [email protected]:/home/deploy/
The key pair lands in C:\Users\you\.ssh\. Paste the contents of id_ed25519.pub into the server's authorized_keys as in Step 5.
macOS and Linux Terminal
Both include the same OpenSSH client, so every SSH VPS command above works in Terminal: ssh [email protected], with -p 2222 for another port.
Windows VPS: use RDP instead
A Windows Server VPS is managed through a graphical desktop, not a shell. Connect with the Remote Desktop client to the server's IP on port 3389 and log in as Administrator; our explainer on what RDP is covers clients and how to lock the port down. As of November 30, 2026, the cheapest Windows plan with at least 2 GB of RAM in our data of 199 providers costs $2.24 per month. See our ranking of the best RDP VPS for plans compared side by side.
Next steps after your first login
With key logins working and passwords off, finish the basics: updates, a firewall that allows only the ports you need, and automatic security patches. Our guide on how to set up a VPS covers that order, and the VPS security checklist adds fail2ban and backups. Still need a server to practice on? The Linux VPS page compares plans from every provider we track, and our guides to making your own VPN and deploying a Django app are good first projects.
Frequently asked questions
Why does nothing appear when I type my password in PuTTY?
That is normal. SSH servers do not echo password characters, so the cursor stays still while you type or paste. Type the password, press Enter and wait. If you get "Access denied", check the user name first: many images expect root, others a named user.
Is PuTTY free and safe to use?
PuTTY is free, open-source software from Simon Tatham's team, released under the MIT license. It is safe when you download it from the official chiark.greenend.org.uk page, which also publishes GPG signatures and SHA-256 checksums for every file. Copies from unofficial download sites are the main risk.
Can PuTTY connect on a port other than 22?
Yes. Type the port in the Port box next to Host Name before you click Open, and save it in the session. PSCP takes the port with -P (capital P), and in PSFTP you add it after the host: open [email protected] 2222.
Can I use my PuTTY .ppk key with the Windows ssh command?
Not directly. The built-in OpenSSH client reads OpenSSH-format keys. Open the .ppk in PuTTYgen, choose Conversions > Export OpenSSH key and save it as C:\Users\you\.ssh\id_ed25519. The public key on the server stays the same, so nothing changes on the VPS.
Is there a PuTTY for Mac?
The official download page offers Windows installers and a Unix source archive, not a ready-made macOS app. On a Mac the Terminal app already includes OpenSSH, so ssh user@ip does the same job. See our VPS setup guide for the next steps after logging in.
Sources
Commands and requirements were checked against these pages on November 30, 2026. Prices and plan tables in the article come from our provider data, updated the same day.
- PuTTY: a free SSH and Telnet client (official home page)
- Download PuTTY: latest release (0.85)
- PuTTY User Manual, Chapter 3: Using PuTTY (copy and paste, port forwarding)
- PuTTY User Manual, Chapter 4: Configuring PuTTY (keepalives, saved sessions)
- PuTTY User Manual, Chapter 5: Using PSCP to transfer files securely
- PuTTY User Manual, Chapter 6: Using PSFTP to transfer files securely
- PuTTY User Manual, Chapter 8: Using public keys for SSH authentication
- PuTTY User Manual, Chapter 10: Common error messages
- OpenSSH for Windows overview (Microsoft Learn)
- Get started with OpenSSH for Windows (Microsoft Learn)