1

I am trying to ssh from a Windows 11 PC into my Ubuntu PC over a local network.

I have followed the Microsoft OpenSSH tutorial to install the openssh client on the Windows 11 PC.

The PC with Ubuntu was installed today and has openssh server installed and running.

I am not able to ssh from my Windows 11 PC using openssh to the Ubuntu PC.

I am getting an error when running the below command in Powershell

"ssh -vvv [email protected]"

OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

debug3: Failed to open file:C:/Users/Rex/.ssh/config error:2

debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2

debug2: resolve_canonicalize: hostname 192.168.x.xxx is address

debug2: ssh_connect_direct

debug1: Connecting to 192.168.x.xxx [192.168.x.xxx] port 22.

debug3: finish_connect - ERROR: async io completed with error: 10060, io:000001C3532E8AE0

debug1: connect to address 192.168.x.xxx port 22: Connection timed out

ssh: connect to host 192.168.x.xxx port 22: Connection timed out

I can connect to the Ubuntu PC via ssh from my Iphone over the network.

I have checked my auth.log file on my Ubuntu machine as has been recommended in the comments.

The logs do not have any information about the unsuccessful ssh attempts from my Windows 11 PC, but when I make a successful ssh connection from my iPhone it is logged.

12
  • Please use the appropriate code tags for logs and commands. Commented Mar 18, 2022 at 7:06
  • Can you add the contents of the sshd log from your server? Commented Mar 18, 2022 at 7:12
  • 1
    So the Ubuntu machine cannot access either server? So which machine is the errors with a username using a configuration file C:/Users/Rex/.ssh/config or C:/ProgramData/ssh/ssh_config. Password authentication or public-key authentication. You should edit your question instead of submitting a comment. After reading your question, 5 times, I am definitely confused by what is working and what isn't working.
    – Ramhound
    Commented Mar 18, 2022 at 7:15
  • @mashuptwice I added the logs and tried to format the question better Commented Mar 18, 2022 at 7:49
  • @Ramhound Hey, apologies for the confusion. I tried to rewrite the question to make it more clear. When I try to ssh from the Windows 11 PC to the Ubuntu PC I get that error. Commented Mar 18, 2022 at 7:51

1 Answer 1

0

Turns out I had the my main pc connected to the modem, and the ubuntu pc connected to my router.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .