SSH connection to specific host times out on Windows 10 22H2

Kylderi 5 Reputation points
2023-09-24T12:02:50.29+00:00

I'm having an issue with connecting to a specific server via SSH on my Windows 10 22H2 machine. The problem started a few days ago and I'm getting a timeout error. Strangely, I can connect to the same server from other machines or by connecting to another server via SSH and then connecting to the specific server from there. I have tried various solutions like reinstalling OpenSSH, editing the Windows host file, running the ssh-keygen command again, adding the host to the known_hosts file, and cleaning the Windows registry of related entries, but nothing seems to work. I suspect it is something related to my machine's SSH configuration. Can anyone offer any suggestions or insights? Thank you in advance.

Windows for business Windows Client for IT Pros Networking Network connectivity and file sharing
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. pasnel 0 Reputation points
    2023-10-07T08:58:20.5733333+00:00

    I encountered a similar problem and found a solution. Here's what worked for me:

    To get more detailed information while connecting via SSH, you can add the '-vv' option to the command:

    
    ssh user@host -vv
    
    

    This will provide additional details, and you might be able to identify the issue.

    In my case, the problem was due to a misconfiguration in the '~/.ssh/config' file.

    0 comments No comments

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.