Home computickets How to fix “PuTTY Fatal Error - Network error: Connection refused” error?

How to fix “PuTTY Fatal Error – Network error: Connection refused” error?

Author

Date

Category

bought a virtual host, gave me an ip-address, login and password, only I can’t connect to it, immediately after pressing the console appears and an error pops up – “PuTTY Fatal Error – Network error: Connection refused” how to fix it? maybe someone came across this and knows how to solve
the technical support says that I enter the password incorrectly, this cannot be, I have done everything carefully. Windows Defender Firewall has disabled. Zero sense!

OS: Windows 10,
Client: PuTTY

UPD:
enters through the browser.
SSH does not work. I can only connect via VPN or 3G Internet.



Answer 1, authority 100%

The most likely reason in the person of the bullying provider has already been indicated, but you can collect a little more information using plink.exe (included in PuTTY):

  1. Open the cmd console
  2. Run plink -v your_host

In response, plink will return additional information on the protocol used when connecting, which will also allow you to cut off some reasons, such as an outdated key exchange.

Connection example:

C: \ Programs \ PuTTY & gt; plink -v & lt; ... & gt;
Looking up host "& lt; ... & gt;"
Connecting to & lt; ... & gt; port 22
We claim version: SSH-2.0-PuTTY_Release_0.67
Server version: SSH-2.0-OpenSSH_7.5p1 Ubuntu-10
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange with hash SHA-256
Host key fingerprint is:
ssh-rsa 2048 45: f8: 02: 48: a0: 76: db: 93: 1a: a4: 1a: 70: ea: 1f: 5f: 71
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 45: f8: 02: 48: a0: 76: db: 93: 1a: a4: 1a: 70: ea: 1f: 5f: 71
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
Store key in cache? (y / n) n
Initialised AES-256 SDCTR client- & gt; server encryption
Initialised HMAC-SHA-256 client- & gt; server MAC algorithm
Initialised AES-256 SDCTR server- & gt; client encryption
Initialised HMAC-SHA-256 server- & gt; client MAC algorithm
login as: Disconnected: No username provided
^ C

Answer 2

Most likely you have a Firewall configured for an external interface on the server. To allow connection to port 22 on Ubuntu (in many versions), just run the commands:

$ sudo ufw allow 22
$ sudo ufw enable

If you are unable to perform or the actions above did not affect anything, then you should contact your hosting provider to solve this problem.

p.s. In such cases, the connection may be blocked by the provider, if all else fails, then I advise you to contact him


Answer 3

  1. Check Ping – is the server available at all from your IP – Checked – works (it is not clear why winMTR writes no response)
  2. Go to the server management console from a browser, check the ranges of IP addresses from which access to the server is allowed. – web virtual server management console, as I understand it, there is no (and the fact that Apache2 is installed on Ubuntu is very good – It works!)
  3. If there is no web console – contact the provider from which the server was purchased and find out how they connect there themselves, whether SSH is up, and from which IP addresses the SSH connection is available (maybe something else must be specified in the settings, actually, for SSH you need not only a login-password, but also a couple of .pem keys – one you have – one on the server). Checked – SSH is up, and .pem keys are not needed, because there is a connection from another device without them. It remains to check the ranges of IP addresses from which SSH connection is available. You can configure them, for example, from the same phone.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions