Share via

How to SSH into a virtual machine with only a private IP

Beihao Hu (DeManaCo LLC) 5 Reputation points Microsoft External Staff
2024-02-20T12:04:55.81+00:00

What configurations do I need to set up in order to SSH into a virtual machine that only has a private IP address? I've tried pinging and SSHing, but the vnet seems to be inaccessible. I am connected to GlobalProtect VPN. Any suggestions on how to resolve this issue?

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


1 answer

Sort by: Most helpful
  1. Deepanshu katara 18,150 Reputation points MVP Volunteer Moderator
    2024-02-20T12:52:00.2533333+00:00

    Hi ,

    Please check this Network Security Group (NSG) Rules:

    • If network security groups are applied to the subnet or the virtual machine's network interface, ensure that there are inbound rules allowing SSH traffic (port 22) from your VPN IP address or range.
    • Review NSG rules associated with the subnet and the VM's network interface to verify that they permit SSH traffic

    Please accept answers, if it helps.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.