I just setup a small lab with an Ubuntu 17.10.1 VM on Hyper-V on a Win 10 host, and was trying to SSH from this VM into the WSL (Windows Subsystem for Linux) Ubuntu Instance in Win 10. I am constantly getting a connection timeout error.
To give you more a quick summary:
- I am able to SSH into the WSL Ubuntu Instance directly from my Win 10 host (using the new Open SSH Beta CLient for Win 10).
- I am able to SSH Into the Ubuntu 17.10.1 VM on Hyper-V from my Win 10 Host.
- I am able to SSH into the Ubuntu 17.10.1 VM on Hyper-V from the WSL Ubuntu Instance on Win 10.
- I am unable to SSH from the Ubuntu 17.10.1 VM on Hyper-V to the WSL Ubuntu Instance on Win 10.
I already changed the SSH port in the WSL Ubuntu instance from 22 to 2222 in the sshd_config file, and set:
UserPrivilegeSeparation No PasswordAutherntication Yes UsePAM to No
Next, I restarted the SSH Server.
The firewall on Win 10 is configured for Inbound rule to allow 2222 on TCP. No IPTables or any other Firewall on the WSL Ubuntu Instance
Please help diagnose the issue.
Update: Had also tried with -vvvv option. Here is the output: