Ubuntu on Hyper-V not connecting over SSH

Subhankar Patnaik 141 Reputation points
2021-07-23T18:25:53.053+00:00

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

System Center Virtual Machine Manager
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. AlexZhu-MSFT 5,871 Reputation points Microsoft Vendor
    2021-07-26T01:12:48.717+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

  2. Subhankar Patnaik 141 Reputation points
    2021-07-23T18:29:05.813+00:00

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

    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.