Home > Software design >  Cannot connect to VM azure
Cannot connect to VM azure

Time:12-06

Yesterday I was able to connect to VM. After i closed it, I was not able to connect anymore. I am getting these errors: Network connectivity blocked by security group rule: DefaultRule_DenyAllInBound

click me to see the error

click me to see network configuration

I am expecting a possible solution to this problem.

CodePudding user response:

You have a rule in your network security group to allow RDP on TCP 3389, however, your test connection is for SSH on TCP 22. Which are you trying to connect by? RDP or SSH? Either add a rule to allow SSH or change your test to use RDP.

Note also, it is not good practice to open your NSG to source ANY. If you have an source IP or range that you can specify, it would be hugely more secure.

CodePudding user response:

To create a new rule, on the Networking blade of the VM (your second screenshot) click Add Inbound Port Rule and create a rule like this: Create Allow Inbound SSH rule

  • Related