Unable to conect to VM

B00118653 Des Jones 1 Reputation point
2021-11-15T10:52:19.027+00:00

When trying to connect to VM via ssh I get no response

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,332 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 13,046 Reputation points
    2021-11-16T13:38:24.937+00:00

    @B00118653 Des Jones - Thanks for reaching out.

    As far as I know, you could check if there is an NSG automatically associated with your VM NIC or subnet by Azure policy or others in your current subscription after you create the Azure VM. Probably, it adds some inbound port rules in the NSG to blocking the network connection. If you want to SSH into your Azure VM. it must have a higher priority inbound rule to allow access port 22 as below. You also could add your client public IP as the source in the rule to narrow the limitation.

    149842-image.png

    Also 0

    Try testing your connection in the azure portal

    149843-image.png

    It points you to the exact inbound rules inside Networking tab which might be blocking your connections.

    Hope that helps.

    If the above response was helpful, please feel free to "Accept as Answer" so it can be beneficial to the community.

    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.