TechBuzzPro

How to Log Into a VPS with PuTTY on Windows

· 7 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To log into a VPS with PuTTY on Windows, download PuTTY from the official site, open it, type your server's IP address and port (usually 22), click Open, then enter your username and password when prompted. That's the whole process. The rest of this guide covers the details that trip people up: finding the right download, handling the SSH key prompt, saving a session so you don't retype the IP every time, and what to do when the window flashes and closes or the password seems to be ignored.

What You'll Need

  • Your VPS connection details: the public IP address, the SSH port (almost always 22 unless your host changed it), the username (often root on Linux VPS plans, or a name like ubuntu or debian depending on the image), and the password or an SSH private key file.
  • PuTTY for Windows: download the 64-bit MSI installer or the standalone putty.exe from the official site at putty.org (which links to the developer's page). Avoid third-party download portals; they often bundle adware.
  • A working internet connection and, if you're on a corporate or campus network, permission to make outbound connections on port 22. Some networks block it.
  • Optional but recommended: PuTTYgen (included in the installer) if you use key-based authentication, and Pageant if you want to load a key once and reuse it.

Menu labels and dialog wording in PuTTY can differ slightly between versions, but the core fields described below have been stable for years.

Step-by-Step

  1. Install or extract PuTTY. Run the MSI installer and accept the defaults, or save the standalone putty.exe somewhere you'll remember, such as your Desktop. If you use the installer, you'll also get PuTTYgen, Pageant, and PSFTP.
  2. Open PuTTY. You'll see the Session configuration screen with a Host Name field, a Port field, and a Connection type selector.
  3. Enter the host. In Host Name (or IP address), type your VPS IP, for example 203.0.113.45. You can also type a domain name if your host gave you one that points to the server.
  4. Set the port. Leave it at 22 unless your provider told you otherwise. If they gave you a custom port such as 2222, change it here. Getting this wrong is the most common reason a connection is refused.
  5. Choose the connection type. Select SSH. PuTTY also offers Telnet, Rlogin, and Serial, which you do not want for a VPS.
  6. Save the session (optional but useful). In the Saved Sessions box, type a name like "My VPS" and click Save. Next time, select the name and click Load instead of retyping the IP.
  7. Click Open. A black terminal window appears. The first time you connect to a new server, PuTTY shows a security alert about the host key fingerprint. This is normal for a fresh VPS. Compare the fingerprint with the one your provider shows in their control panel if you want to be certain, then click Accept. If you click Accept, PuTTY stores the key and won't ask again for that server.
  8. Enter your username. At the login as: prompt, type the username your host gave you (for example root) and press Enter. Note that the username is visible as you type.
  9. Enter your password. Type the password and press Enter. Nothing will appear on screen, not even asterisks. This is normal SSH behaviour, not a frozen window. Paste works with a right-click in the PuTTY window by default.
  10. Confirm you're in. You should see a shell prompt such as root@server:~# or ubuntu@server:~$. That means you're logged in and can run commands.

If your host set up key-based authentication instead of a password, you'll need to attach the private key before connecting: go to Connection > SSH > Auth > Credentials (older versions label this Auth), click Browse next to the private key file field, and select your .ppk file. If your key is in OpenSSH format (id_rsa with no extension), convert it first with PuTTYgen using Load and then Save private key. Then connect as above; you won't be asked for a password.

Common Mistakes

  • Typing the password and seeing nothing. People assume the terminal is broken and start mashing keys. It isn't; SSH hides password input entirely. Type carefully and press Enter once.
  • Using the wrong username. Many hosts don't allow direct root login and expect a user like ubuntu, debian, or centos. Check the welcome email or control panel.
  • Wrong port. If your provider moved SSH off port 22, connecting to 22 will just time out or be refused.
  • Pasting the password with trailing spaces. A copied password often carries a space or newline. Type it manually if login keeps failing.
  • Ignoring the host key warning. If you get a WARNING: POTENTIAL SECURITY BREACH message on a server you've connected to before, stop and investigate. It can mean the server was reinstalled, but it can also mean someone is intercepting the connection.
  • Downloading PuTTY from an unofficial mirror. Use the official source to avoid bundled software.

Tips

  • Right-click pastes into the PuTTY window; there's no Ctrl+V by default. To copy text out, just select it with the mouse.
  • Increase the scrollback buffer under Window > Lines of scrollback if you'll be reading long command output.
  • Save each server as its own session so you can switch between them from the Saved Sessions list.
  • Use Pageant to load your private key once at Windows startup; PuTTY will then use it automatically for any saved session.
  • Change the default font size under Window > Appearance if the text is hard to read on a high-resolution display.
  • Keep PuTTY updated. Older builds may lack fixes for known SSH issues.

Troubleshooting

The window opens and closes instantly. This usually means the connection was refused or the server rejected authentication. Reopen PuTTY, check the IP and port, and try again. If it still closes, the SSH service on the VPS may be down; use your host's web console to check.

"Network error: Connection timed out." The IP is wrong, the server is offline, or a firewall is blocking port 22. Confirm the IP in your host's control panel, and try from a different network if possible.

"Network error: Connection refused." Something is listening on that IP but not on that port. Double-check the SSH port your provider specified.

"Access denied" after entering the password. The username or password is wrong, or the server only accepts key authentication. Check the credentials in your host's panel, and reset the password there if needed. If keys are required, attach your private key as described above.

"Server refused our key." The public key isn't installed on the server for that user, or you attached the wrong private key. Verify with your host's documentation or re-add the key through their panel.

The host key changed warning appears. If you reinstalled the VPS yourself, it's expected; accept the new key. If you didn't, don't accept it until you've confirmed with your provider that the server wasn't rebuilt or compromised.

You can connect but commands fail with permission errors. You're probably logged in as a normal user. Use sudo for administrative commands, or log in as root if your host allows it.

Frequently Asked Questions

Is PuTTY still the right tool for Windows?

Yes. Windows now includes an OpenSSH client you can use from Command Prompt or PowerShell with the ssh command, but PuTTY remains a solid, widely used graphical option and is fine for logging into a VPS.

Why does my password not show when I type it?

SSH deliberately hides password input. Nothing appears, not even dots. Type the password and press Enter; if it's correct, you'll get a shell prompt.

Can I log in with a username and password instead of a key?

Only if your provider enabled password authentication. Many VPS images ship with key-only login for security. If password login is disabled, use the private key your host issued or add a key through their control panel.

How do I convert an SSH key to a format PuTTY accepts?

Open PuTTYgen, click Load, select your private key file, then click Save private key to produce a .ppk file. Attach that file under the SSH auth settings in PuTTY.

What is the host key fingerprint prompt?

It's PuTTY asking you to confirm the server's identity the first time you connect. Accept it for a new server; if it appears for a server you've used before, treat it as a warning and verify with your provider.

Can I use PuTTY to transfer files?

Not directly. Use PSFTP or WinSCP for file transfers over SFTP, both of which work with the same credentials and keys.