- Connecting to a remote server for file transfers can be accomplished using a software like PuTTY. It is a very old software that continues to be updated and works very well.
- If a network error show with Connection Refused message, make sure that the server is configured, check if the port used is the same as your setup or look at your firewall and make sure PuTTY is not blocked.
- Since we are looking at a way of transferring items, see other file transfer articles that we have on the website.
- We all wish for not encountering any issues but, sadly, sometimes they happen. Check our great Windows 10 errors hub for fixes.
PuTTy is a free and open-source terminal application that allows the system administrator to log in to a remote server over SSH. This small yet highly stable application is also used to transfer files securely via SCP and SFTP.
If you work in IT or have your own set of servers that need to be connected, PuTTy is not an alien concept to you. However, what can be an alien concept is the Putty Fatal error.
The error “Network error: connection refused” is one of the common PuTTY related errors that you may face while working with Putty. The error pops up when you try to connect to a remote server for the first time or the 100th time.
I have had my fair share of problems with PuTTy, but most of the time the errors are caused by small but not so obvious issues.
If you are one of those trying to diagnose a connection refused error, this article will help you to resolve the error.
In this article, I have listed all the possible solutions to the PuTTy connection refused error. Make sure you try each one of them a try until the issue is resolved.
What causes Network error: Connection Refused errors?
The error can occur due to several reasons. Some of them are listed below.
- The users may encounter “Network error: connection refused” error:
- If the application tries to access the services not offered/supported by the server
- If the application tries to connect to a telnet server not supported by the server.
- If your router blocks the connection due to security reasons.
- If the server does not support the default port used by the system administrator on PuTTy.
These are some of the common reasons for network error: connection refused error in PuTTy. Below are some common solutions that you can try to fix the issue.
How can I fix Network Error: Connection Refused errors?
Fix 1: Contact the system/network administrator
If you are not a system administrator, it is a better idea to start by contacting your system administrator.
System Administrators may change some permissions in the router if they notice any unknown device trying to connect or for other security reasons from time to time.
If that’s the case, you can easily resolve the issue by contacting the system admin before trying to resolve the issue on your end. While you are at it, you can also tell him about how NetCrunch Tools could help with their daily tasks.
Fix 2: Check if SSH connection is enabled
Depending on the device you are trying to connect, the network error – connection refused error may appear if the device settings have SSH disabled.
For example, if you are using Raspberry Pi to connect through your PC, make sure the ssh is enabled in the configuration. Here is how to do it.
In Raspberry Pi, go to Configuration > Interfaces > ssh. Enable the service and try again.
The settings may change depending on the device you are using, but the end result should be a working network connection through PuTTy.
Fix 3: Check if your domain records points to the server
If you are working with a new server and a fresh domain, the error can occur due to an incorrect DNS server address in the domain settings. All the domain registrar allows you to point your domain to you any third-party hosting provider using the name server.
If you have only installed a server and did not change the name server, you might end up with a network error: connection refused error.
To fix the problem, log in to your domain name provider and check the name server settings to see if the name servers are pointing to your hosting provider.
Fix 4: Check for Blacklisted and Whitelisted IP Address in the server
For security reasons system administrator may allow connection from only computers with known IP address and that is already whitelisted in the configuration file.
If your ISP IP address has changed or if you are new to the job, you probably need to ask the network admin to make an exception.
The same can also happen if your IP address is blacklisted by the network admin accidentally.
So, check with your network admin for both scenarios and see if that can help you resolve the issue.
Fix 5: Disable Firewall
Try disabling the firewall temporarily to see if that can resolve the connection refused error. If it does, you may need to tweak the firewall setting to fix the error completely.
Disable Firewall in Windows Security
- Click on Start and select Settings.
- Open Update and Security > Windows Security.
- Open Firewall and network protection.
- Select preferred network type (Public, Private or Domain Network) and disable Windows Defender Firewall.
Disable Anti-virus Firewall
If you have a third-party anti-virus program running, you may also need to disable the firewall offered by the application. You can disable the firewall from the anti-virus settings option.
Try to connect using PuTTy now. If the connection goes through, you need to tweak Firewall settings to fix the problem.
Even so, having a compatible antivirus solution installed on your PC keeps you safe and protected all the time, without interfering with your tasks or activities.
Therefore, we strongly recommend choosing the best antivirus for your PC, even though right now as a temporary workaround you had to disable the Firewall and fix this issue. It is not recommendable to be vulnerable to dangerous attacks throughout the network.
If none of the fixes worked for you, you can try to restart the SSH server or reboot the servers.
If your server was set up by someone else, the possibility is that they may have moved the default port as per their convenience. Contact and ask for the configuration nodes to get a better idea of the ports.
If you are using a fully managed server, contact support. If the issue is from the hosting provider’s end, the system administrator will fix the issue.
Last but not the least, start using other alternatives to Putty such as other SH terminals can help you in case you encounter an error that is specific to PuTTY.
The Putty Fatal error “Network error: connection refused error can occur due to several reasons and I have tried to list the most common problems and solutions for the same.
However, if the fixes listed in this article don’t work for you, you may ask in forums related to your device or OS on which the error is appearing.
Do let us know if any of the fixes worked for you or if you have a solution that is not listed in the article in the comments below.
Frequently Asked Questions
Make sure to have PuTTY updated to the latest version. Then, check your local antivirus or firewall software and make sure they are not blocking the application. Finally, make sure you entered the correct information and that the server you are trying to connect to is available.
PuTTY is perhaps the most popular software on Windows used to connect to a remote server via SSH or Telnet protocols. PuTTY does NOT support FTP and for that you would need a different software. Check our list of best automated FTP tools.
Each firewall software has a different interface and options available. Most have lists called whitelists or allowed lists in which you add PuTTY there to make sure it is allowed. Read more information and steps on how to check if Windows Firewall is blocking something.