D
D
driverx182020-11-27 14:33:54
SSH
driverx18, 2020-11-27 14:33:54

Why ssh connection refused if port is open?

5fc0e41eed904337446464.png

Here are open ports, ssh is apparently open
But when connecting, it gives
ssh [email protected]{host}
ssh: connect to host {host} port 22: Connection refused

Ubuntu 18.04, DigitalOcean
How can this be fixed?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman Mirilaczvili, 2020-11-27
@2ord

Try
ssh -vvv [email protected]{host}
Maybe a key is required.
Or maybe the firewall won't let you in.

O
Oleg Volkov, 2020-11-27
@voleg4u

And it also happens that you actually connect to another machine. Errors in DNS or duplicate IP

R
res2001, 2020-11-27
@res2001

The port on the host is open, but traffic may be blocked by a local firewall or non-local one.
"Connection refused" usually means that there is no connection to the server. Communication may not be for various reasons. Ports are just one of them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question