Unable to connect to virtual machine

anndonxlow 0 Reputation points
2024-07-29T13:00:06.5933333+00:00

Hello. I am using a Azure Virtual Machine to run Linux. However, I am unable to connect to this virtual machine when I am at home. It works perfectly fine when I am at the office. This is the error message when I try to connect to the virtual machine. User's image

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

1 answer

Sort by: Most helpful
  1. Abiola Akinbade 23,135 Reputation points
    2024-07-29T13:43:33.7+00:00

    It is very likely your home network is blocking port 22. Check your router settings to ensure port 22 is open for outgoing connections.

    You can check using:

    Get-NetFirewallRule -Name <String[]>
    

    If the SSH port is open, I will recommend checking on the Azure end.

    See steps here: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/linux/troubleshoot-ssh-connection

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


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.