How to Repair: Putty Network Error Connection Refused

RECOMMENDED: Click here to fix Windows errors and optimize system performance

This error means that the network connection that PuTTY wanted to establish with your server was rejected by the server. This usually happens because the server does not provide the service PuTTY is trying to access.

Check if you are connecting to the correct protocol (SSH, Telnet or Rlogin) and if the port number is correct. If this is not possible, contact your server administrator.

The PuTTY application of Telnet and Secure Shell or SSH terminal emulator provides the user with a simple interface for these relatively advanced Internet functions. Although the application makes great efforts to provide a seamless experience, from time to time server-side errors such as “Connection Refused” can occur. With a little information, PuTTY users can work with server administrators to solve these connection problems.

A PuTTY User Guide that appears on the Quest Software website provides a simple explanation of the “Network Error“: a connection denial problem that PuTTY users may encounter from time to time. According to the manual, this error message appears when the application tries to connect to a server that does not provide the service PuTTY wants to access. If a user tries to connect to a Telnet server using PuTTY, but this server does not support Telnet connections, for example, PuTTY returns a “network error” message: Connection rejected.

Using puttygen for Windows

  1. Copy the private key (id_rsa) into Windows.
  2. Launch’PuTTY Key Generator’ (puttygen.exe) and click on the Load button.
  3. Go to All Files (*.*) and open your private key file created in Ubuntu (id_rsa).
  4. Enter the passphrase, if any, and click OK. A notification will appear – click OK again.
  5. Modify the key’s comment and passphrase if you need it and click Save Private Key.
  6. Save your new.ppk key in a suitable location.
  7. Use this.ppk key with PuTTY to connect to Ubuntu.

February 2021 Update:

We now recommend using this tool for your error. Additionally, this tool fixes common computer errors, protects you against file loss, malware, hardware failures and optimizes your PC for maximum performance. You can fix your PC problems quickly and prevent others from happening with this software:

  • Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
  • Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
  • Step 3 : Click “Repair All” to fix all issues.


Implementation of the correct IP address

It is possible that the IP address you are using is not the one of Raspberry Pi. Therefore, in this step, we will identify the correct IP address and use it for the connection. To do that:

  1. Click on this link to download the Advanced IP Scanner tool.
    Note: This tool is free and can easily be used to identify the IP address.
  2. Click on the”.exe” and follow the on-screen instructions to install it.
  3. After installation, launch the tool and click on the “Scanner” button.
  4. Wait until the scanning is finished.
  5. Check if there is a connection named “RaspberryPi” in the list.
  6. Otherwise, press “Windows” + “R” and type “ncpa.cpl”.
  7. Press “Shift” and click on a “LAN” connection and on the current “Wifi” connection.
  8. Click on the Bridge Connections option to create a bridge.

Execution of a CLI order

It is possible that a configuration error occurred during the Raspberry Pi connection process that prevents you from using the ssh command to connect. It is therefore recommended to connect using the command below.

$ sudo rm /etc/ssh/ssh_host_* && sudo dpkg-reconfigure openssh-server

RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance