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
- Copy the private key (id_rsa) into Windows.
- Launch’PuTTY Key Generator’ (puttygen.exe) and click on the Load button.
- Go to All Files (*.*) and open your private key file created in Ubuntu (id_rsa).
- Enter the passphrase, if any, and click OK. A notification will appear – click OK again.
- Modify the key’s comment and passphrase if you need it and click Save Private Key.
- Save your new.ppk key in a suitable location.
- Use this.ppk key with PuTTY to connect to Ubuntu.
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:
- 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.
- Click on the”.exe” and follow the on-screen instructions to install it.
- After installation, launch the tool and click on the “Scanner” button.
- Wait until the scanning is finished.
- Check if there is a connection named “RaspberryPi” in the list.
- Otherwise, press “Windows” + “R” and type “ncpa.cpl”.
- Press “Shift” and click on a “LAN” connection and on the current “Wifi” connection.
- 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
CCNA, Web Developer, PC Troubleshooter
I am a computer enthusiast and a practicing IT Professional. I have years of experience behind me in computer programming, hardware troubleshooting and repair. I specialise in Web Development and Database Design. I also have a CCNA certification for Network Design and Troubleshooting.