Subject: Connectivity Issue - Unable to Access VM via SSH, RDP and all Ways

Yara Abi Raad 25 Reputation points
2023-07-24T01:45:55.3866667+00:00

Dear Azure Support,

I am experiencing a connectivity issue and am unable to access my virtual machine (VM). I would like to request your assistance in troubleshooting and resolving this issue. Below are the details of the problem:

Description of the Issue:

I am currently unable to establish a connection to my VM. I have tried accessing it through Remote Desktop Protocol (RDP) and SSH, but both connections are unsuccessful. The VM was previously accessible without any issues, and no recent changes have been made to the VM configuration.

Actions Taken:

In an attempt to resolve the issue, I have performed the following steps:

  1. Checked the status of the VM in the Azure portal to ensure it is running.
  2. Verified that the VM's network security group (NSG) rules allow incoming connections on the appropriate ports for RDP (3389) and SSH (22).
  3. Confirmed that the public IP address associated with the VM is correct.
  4. Restarted the VM through the Azure portal.
  5. Verified that other resources in the same virtual network are accessible without any issues.

Observations:

Despite the above steps, I am still unable to access the VM. It seems that there may be a connectivity issue preventing me from establishing a connection.

Request:

I kindly request your assistance in diagnosing and resolving this connectivity issue. Please investigate the network configuration and perform any necessary troubleshooting steps to restore connectivity to the VM.

If there are any additional details or logs required to investigate the issue, please let me know, and I will provide them promptly.

Thank you for your attention to this matter. I look forward to your prompt response and resolution of the issue.

Best regards,

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

Accepted answer
  1. vipullag-MSFT 26,436 Reputation points
    2023-07-28T17:00:15.98+00:00

    Hello Yara Abi Raad

    Issue Description: Connectivity Issue - Unable to Access VM via SSH, RDP and all Ways.

    Resolution: We made sure that the NSG rules are correctly set for the required ports open and are attached to VM's. Checked with this link (https://ping.eu/port-chk/) and the Public IP was still not accessible on the port and was showing "Closed".
    However, as suggested the blocker was the firewall inside the VM that was blocking the connections. Once the firewall settings were allowed for required ports, VM was accessible.

    Please 'Accept as answer', so that it can help others in the community looking for help on similar topics.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Yara Abi Raad 25 Reputation points
    2023-07-25T13:44:17.55+00:00

    Actually the NSG rules were all set and correct. The problem was in the firewall. Even with rules set, the firewall on the VM wasn’t allowing the ports. I accessed the VM cmd from the interface and allowed the ports manually.

    Thank you for your assistance!

    1 person found this answer 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.