Hello,
Thank you for posting in the Microsoft community forum.
You can try the following steps to troubleshoot the problem:
- Make sure your firewall is not blocking SSH traffic. You can test this by running the following command in the command prompt: ssh ******@test.rebex.net
- Check the network connectivity between the local client and the remote device. To check the IP address and port number of the remote device, you can use the 'ping' command to test.
- If you are connecting remotely from an external network, make sure that port forwarding is correctly set to port 22 on your router.
Reference:
how to fix a ssh port 22 connection problem in windows 11 - Microsoft Q&A
I hope this helps.
Best regards
Jacen