Answer the question
In order to leave comments, you need to log in
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
> 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.
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.
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 questionAsk a Question
731 491 924 answers to any question