Problems connecting through SSH to my Ubuntu VM

David Holloway 1 Reputation point


I think my config for ssh and my key is in the right file. I need en engineer to verify that as well as
the ssh setup for my virtual machine, so I can get some use out of my machine.


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

2 answers

Sort by: Most helpful
  1. Dominik Blum 1 Reputation point

    Hi @David Holloway ,
    Connection timed out means that your VM is not reachable, so there can be several problems:

    Have you checked if the public IP has changed because of a reboot of the machine (dynamic public ip)?
    Have you checked if a NSG is blocking the SSH Access from the Internet to your machine?
    Have you configured the software firewall of the VM (iptables) ?

    Are other services on your VM reachable?


  2. TravisCragg-MSFT 5,681 Reputation points Microsoft Employee

    @David Holloway Microsoft is responsible for the hardware side, but whatever you put on that hardware is yours to manage.

    Here is a great doc that outlines some basic troubleshooting steps for VMs if you cannot SSH. If you have a support plan, you can also create a support request and an engineer will assist you in regaining access to your VM (if possible).

    If you are new to Azure, typically Network Security Groups (NSGs) will block incoming SSH connections if you do not specify the rule when you create the VM.

    Navigate to your VM in the portal and go to 'Networking' and then make sure that your 'Inbound Port Rules' allow port 22.


    0 comments No comments