This guide shows you how to use PuTTY, a free SSH client for Windows, to connect to your Virtual Private Server (VPS) securely. You’ll enter your server’s IP address, port, and login credentials to get a command-line terminal where you can manage files, install software, and configure services. No prior PuTTY experience is needed—just follow the steps below.
What You’ll Need
- A Windows PC (PuTTY runs on Windows; for macOS/Linux, use the built-in terminal instead).
- Your VPS’s IP address or hostname (provided by your hosting provider).
- The SSH port number (default is 22, unless your provider changed it).
- Your VPS username (often
rootor a custom user) and password, or a private key file if you set up key-based authentication. - PuTTY installed. Download it from the official PuTTY website (putty.org) and run the installer.
Step-by-Step
- Launch PuTTY. After installation, open PuTTY from the Start menu or desktop shortcut. The main window shows the “Session” category by default.
- Enter your server’s hostname or IP. In the “Host Name (or IP address)” field, type your VPS’s IP address (e.g.,
192.168.1.100) or its domain name (e.g.,server.example.com). - Set the port. In the “Port” field, enter the SSH port. The default is
22. If your provider uses a custom port (like 2222), type that number instead. - Choose connection type. Ensure the radio button next to “SSH” is selected (it usually is by default).
- Save the session (optional but handy). In the “Saved Sessions” box, type a name like “My VPS” and click “Save”. Next time, you can double-click that name to load the settings.
- Click “Open”. A terminal window will appear. The first time you connect to a new server, PuTTY will show a security alert asking if you trust the host key. Click “Accept” (or “Yes”) to cache the key and continue.
- Log in. When prompted, type your username (e.g.,
root) and press Enter. Then type your password. Note: the password won’t show as you type—this is a security feature, not a glitch. Press Enter after typing. - You’re connected! You’ll see a shell prompt like
root@vps:~#or similar. You can now run commands likels,cd, orapt update(on Debian/Ubuntu).
Common Mistakes
- Using the wrong port. Some VPS providers use a non-standard port for security. Double-check your welcome email or control panel.
- Typing the password blindly. PuTTY doesn’t show dots or asterisks for password input. It’s normal—just type carefully and press Enter.
- Forgetting the username. If you’re not sure, try
rootor the username your provider gave you. Some providers create a user likeubuntuorcentos. - Ignoring the host key warning. If you see a warning that the host key doesn’t match, it could be a security issue. Only accept if you’re sure the server is legitimate.
- Leaving the port as 22 when it’s different. Always verify the port from your provider’s documentation.
Tips
- Save your session. Saving the IP, port, and username (in the “Data” field under Connection) saves time on future connections.
- Use key-based authentication. Instead of a password, generate a key pair with PuTTYgen and upload the public key to your server. This is more secure and allows passwordless login.
- Copy and paste in PuTTY. To copy text from the terminal, select it with the mouse. To paste, right-click (or press Shift+Insert). This works in both directions.
- Change the font size. Go to Window > Appearance in the left menu to adjust the font for better readability.
- Keep PuTTY updated. Older versions may have security vulnerabilities. Download the latest from the official site.
Troubleshooting
- Connection timed out. Check that your VPS is running and that the IP address is correct. Also, ensure your local firewall or network isn’t blocking outbound SSH. Try pinging the server:
ping your-ip. - Connection refused. This usually means the SSH service isn’t running on the server or the port is wrong. Contact your provider or try a different port.
- Host key verification failed. If you’ve connected before and the key changed, it could be a man-in-the-middle attack or the server was reinstalled. In PuTTY, you can delete the cached key in the Registry (search for “PuTTY host keys”) and reconnect.
- Access denied. Double-check your username and password. If you use a key, make sure the private key file is loaded (Connection > SSH > Auth).
- PuTTY won’t open. Try running as administrator, or reinstall PuTTY. Also, check if your antivirus is blocking it.
- Terminal shows garbage characters. This can happen if the server sends locale settings that PuTTY doesn’t understand. Go to Window > Translation and set the character set to UTF-8.
Frequently Asked Questions
What is PuTTY?
PuTTY is a free and open-source terminal emulator that supports SSH, Telnet, and other protocols. It’s the most common way Windows users connect to Linux servers.
Can I use PuTTY on macOS or Linux?
PuTTY is designed for Windows. On macOS or Linux, you can use the built-in terminal with the ssh command: ssh user@ip.
How do I copy files to my VPS using PuTTY?
PuTTY itself doesn’t transfer files. Use the companion tool PSFTP or PSCP (included in the PuTTY suite) to copy files over SSH.
What’s the default username for my VPS?
It depends on your provider and OS. Common ones are root (for most cloud providers) or ubuntu, centos, debian. Check your provider’s welcome email or documentation.
How do I change my SSH port in PuTTY?
Simply type the port number in the “Port” field before connecting. If your server uses a custom port, you must specify it every time (or save it in a session).
Is PuTTY safe to use?
Yes, PuTTY is widely trusted and open-source. Always download it from the official website to avoid malicious copies.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Car Trends Making Cars Worse: 7 Downsides
- Nostalgic Classic Games Revamped on G2A?
- Nvidia RTX 4000 Super GPUs: Full Specs & Buying Guide
- Photoshop vs Lightroom AI Features Compared
- DNF vs DNF5: Which Package Manager?
- Stop iTunes Web Links From Opening iTunes