- 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 being a free and open source terminal application allows system administrator to login to 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 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 100th time.
I have had my fare of 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 connection refused error, this article will help you to resolve the error.
In this article, I have listed all the possible solutions to 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 reason 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 with contacting your system administrator.
System Administrators may change some permissions in router if they notice any unknown device trying to connect or for other security reasons 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 has SSH disabled.
For example, if you are using Raspberry Pi to connect through your PC, make sure the ssh is enabled in 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 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 network error: connection refused error.
To fix the problem, login 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 are 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 the both the 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 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.
If none of the fix worked for you, you can try to restart the SSH server or rebooting the servers.
If your server was setup 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 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 which 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 now 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.