Can't access to my Windows VM with SSH

Enzo 21 Reputation points
2020-11-23T12:11:38.053+00:00

Hello,

I have recently set up my Windows VM but I can't access it with SSH.
When I open Putty on my Windows computer and I connect to my VM nothing happens and afetr a few seconds the connection timed out.
In my VM params on the Azure portal I've set up SSH like this :
41894-image.png
I also tried that :
41903-image.png
And finally I also tried to generate public/private key and so on but nothing changes, I still can't access to my VM with SSH.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,907 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 109.9K Reputation points MVP
    2020-11-23T18:03:27.533+00:00

    Maybe this is helpful:

    • Did you install a SSH Server service on the Windows VM? By default a Windows Server has no SSH service running (as far as I know).
    • If a SSH service is running on the Windows Server you have to create an inbound rule for TCP Port 22 in the OS Firewall.
    • Do you have NSGs associated with the VM and the subnet? Every related NSG needs a valid inbound rule for SSH.

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.