OpenSSH on Windows does not work

tmCool 25 Reputation points
2024-01-16T13:59:46.98+00:00

I installed OpenSSH on Windows 10, connecting to my Linux laptop is successful, but the opposite does not work. I tried installing ssh on 2 more different devices. The ping of the devices is successful, the connection to the laptop is successful, but the connection via SSH to my computer fails both from the laptop and from other devices with a “connection timed out” error. Using other ports does not help "connection refused"

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,075 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,693 questions
0 comments No comments
{count} vote

Accepted answer
  1. MotoX80 36,181 Reputation points
    2024-01-16T15:17:42.7833333+00:00

    Verify that you installed the OpenSSH Server feature. User's image

    Verify that the OpenSSH services are running and set to automatic startup, User's image

    Verify that the service is listening on port 22 on any IP address.

    C:\>netstat -aon | findstr -i listen | findstr :22
      TCP    0.0.0.0:22             0.0.0.0:0              LISTENING       35008
      TCP    [::]:22                [::]:0                 LISTENING       35008
    
    

    Verify that the Windows firewall rules allow access.

    User's image

    If you still can't connect, then you will need to provide details about your network. Use Powershell's Test-Connection to see if port 22 can be accessed.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.