SSH to VM from Bastion Host Failed.

Jessie 85 Reputation points
2024-11-13T07:03:04.84+00:00

Hello,

I created a test environment in preparation for a live environment and I am having trouble connecting to my virtual machines from the Bastion Host.

Configuration:

  1. One VNET with 3 subnets. All the subnets have NSGs associated to them.
  2. Bastion host subnet also with NSG associated.
  3. VMs configured to use ssh keys during loging. I downloaded the private key to my local environment.
  4. Passwords for Vms not configured (Do I need to configure passwords?).

What I have done so far:

  1. Connection troubleshooting from Bastion to both VMs via port 22 ended with the status "Reachable".
  2. Connection troubleshooting from Bastion to both Vms via port 3389 ends with the status "Unreachable".

ssh azureuser@

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

1 answer

Sort by: Most helpful
  1. Jessie 85 Reputation points
    2024-11-25T00:10:45.2966667+00:00

    Hello @Prrudram-MSFT

    Thank for all your guidance.

    The problem has been resolved.

    I needed a global IP address to access the servers. Once I allowed it at the subnet nsg, I was able to connect to the servers.

    Thank you once again.


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.