How to Connect a Server Using PuTTY

How to Connect a Server Using PuTTY

Whether you are managing a VPS, dedicated server, or any Linux-based remote machine, PuTTY is one of the most popular tools for establishing SSH (Secure Shell) connections from Windows systems.

In this guide, we’ll walk you through how to use PuTTY to connect to your server, including downloading the tool, configuring it, and troubleshooting common issues.


πŸ“¦ What is PuTTY?

PuTTY is a free and open-source terminal emulator that supports SSH, Telnet, and serial console connections. It is most commonly used to connect to Linux servers securely using SSH from a Windows PC.


βœ… Prerequisites Before You Begin

To connect to a server using PuTTY, you’ll need the following:

  • βœ… PuTTY installed on your local machine
  • βœ… Server IP address or hostname
  • βœ… Port number (default is 22 for SSH)
  • βœ… SSH credentials (username, usually root, and password or private key)

πŸ”½ Step 1: Download and Install PuTTY

  1. Visit the official PuTTY website:
    πŸ‘‰ https://www.putty.org/
  2. Download the appropriate version for your system (64-bit or 32-bit).
  3. Run the installer and follow the instructions to install PuTTY on your PC.

πŸ”Œ Step 2: Open PuTTY and Enter Server Details

  1. Open PuTTY from the Start menu.
  2. In the Host Name (or IP address) field, enter your server’s IP (e.g., 192.168.1.10).
  3. Port: Leave it as 22 (default for SSH).
  4. Connection Type: Ensure SSH is selected.
  5. (Optional) In the left sidebar, go to Connection β†’ Data, and enter your Auto-login username (e.g., root) to save time.

πŸ’Ύ Step 3: Save the Session (Optional but Recommended)

To avoid retyping the information every time:

  1. In the Saved Sessions field, type a name (e.g., My VPS Server).
  2. Click Save.
  3. Next time, just double-click the saved session to connect.

πŸ” Step 4: Connect and Authenticate

  1. Click Open to start the connection.
  2. If it’s your first time connecting, PuTTY will ask to trust the server’s SSH key. Click Yes.
  3. A terminal window will open asking for a username (e.g., root), if not auto-filled.
  4. Enter the password and press Enter. Note: The password will not be visible as you type (for security).
  5. βœ… You are now logged into your server!

πŸ”‘ Using SSH Key Instead of Password (Advanced)

If your server requires SSH key authentication:

  1. Convert your private key to .ppk format using PuTTYgen (bundled with PuTTY).
  2. In PuTTY, go to:
    • Connection > SSH > Auth
    • Click Browse and select your .ppk file
  3. Then connect as usual.

πŸ› οΈ Common PuTTY Errors and Fixes

ErrorSolution
Network error: Connection timed outServer might be offline or IP/firewall blocked. Check port 22 access.
Access deniedIncorrect username or password. Double-check credentials.
Server unexpectedly closed network connectionCould be due to key mismatch, firewall, or wrong login method.

🧠 PuTTY Tips and Tricks

  • πŸ’Ύ Always save your sessions for faster access.
  • πŸ” Use key-based authentication for improved security.
  • βš™οΈ Enable keep-alive settings under Connection β†’ Seconds between keepalives to prevent timeout.

βœ… Final Thoughts

Using PuTTY is a simple and secure way to manage your remote Linux server from a Windows PC. Whether you’re installing software, running scripts, or checking logs, PuTTY gives you full control over your server via SSH.


Need a reliable Linux VPS or RDP server?
πŸ‘‰ Nivohost offers high-performance VPS with full root access and 24/7 support.

Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *