Share via

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 for business | Windows Server | User experience | Other
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments

Answer accepted by question author

MotoX80 37,686 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.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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