question

SubhankarPatnaik avatar image
0 Votes"
SubhankarPatnaik asked AlexZhu-MSFT answered

Ubuntu on Hyper-V not connecting over SSH

Hi All

I installed Ubuntu 20.0 on my Hyper-V VM on my Laptop but unable to do SSH using Putty from the same Windows 10 Laptop. What settings can I check though I'm able to ping the VM successfully.

117545-image.png

117533-image.png


With Regards,
Subhankar


msc-virtual-machine-manager
image.png (4.9 KiB)
image.png (562.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SubhankarPatnaik avatar image
0 Votes"
SubhankarPatnaik answered SubhankarPatnaik edited

I installed OpenSSH on the Ubuntu OS and it worked. :)
Thanks

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AlexZhu-MSFT avatar image
0 Votes"
AlexZhu-MSFT answered

Hi,

Thank you very much for the sharing and we're glad the problem is solved now.

Hope others facing the same situation will benefit from this thread. Here's a short summary for the problem.


Problem/Symptom:
\=========================
Platform: Windows 10, Ubuntu 20.04
Problem details:
installed Ubuntu 20.04 on Hyper-V VM on my Laptop but unable to do SSH using Putty from the same Windows 10 Laptop


Analysis/Possible Cause:
\=========================
OpenSSH server is NOT installed by default for Ubuntu/Debian based distribution.
We can verify this via the following command:
ps -e | grep sshd
117688-openssh.png


Solution/Workarounds:
\=========================
install openssh server
sudo apt install openssh-server


Reference:
\=========================
N/A

If you have any questions in future, we warmly welcome you to post in this forum.

Have a nice day!

Regards,

Alex
If the response is helpful, please click "Accept Answer" and upvote it.



openssh.png (23.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.