A
A
Alyosha2018-06-07 11:00:20
SSH
Alyosha, 2018-06-07 11:00:20

Port 22: connection refused when connecting via ssh?

Installed OpenSSH on both computers. Now when you enter the command ssh [email protected] -p 22
, an error appears
port 22: connection refused
. Windows Firewoll has opened ports 21 and 22 on both computers for incoming and outgoing requests, what else can cause the error? whether it is obligatory to load computers?
OS on both computers: Windows 7

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
vreitech, 2018-06-07
@fzfx

> In Windows Firewoll, ports 21 and 22
were actually opened by openssh server and windows - things are hardly compatible. Are you sure that you installed the server part and specifically on windows?
> What else could be causing the error?
with the fact that you installed the wrong thing.

S
Sergey, 2018-06-07
@feanor7

the port is closed, you can check via telnet

D
dan lar, 2018-06-07
@vortx

Check that it is running, then call the cmd console in ADmin mode, and run netstat - aon and look for your server, there are pids for them, you can compare what is running on the port in the application manager.

R
rionnagel, 2018-06-13
@rionnagel

According to your original problem, either the port is not open, or the service is not installed, or it hangs on a different port, or something else, I don’t know -v will show or not, as an option, you can see the contents of why the connection refused with wireshark. On the problem that you shared in the comments - the key algorithm is not specified in the config.
Try ssh -v [email protected] and write the output.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question