Problems connecting through SSH to my Ubuntu VM

David Holloway 1 Reputation point
2021-02-21T23:58:14.857+00:00

70330-azure-2.png70297-azure-1.png70388-azure-3.png70411-azure-4.png

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.

Thanks

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

2 answers

Sort by: Most helpful
  1. Dominik Blum 1 Reputation point
    2021-02-22T09:14:53.73+00:00

    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?

    Greetings


  2. TravisCragg-MSFT 5,646 Reputation points Microsoft Employee
    2021-02-24T23:48:24.913+00:00

    @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.

    71804-image.png

    0 comments No comments