Unable to SSH in Ubuntu VM

Brittany 1 Reputation point

I created a cluster on Microsoft Azure which created a Virtual Machine. Whenever I try to SSH into the Virtual Machine, I get a 'Connection timed out' error. I have tried restarting the Virtual Machine and I've also checked the Network Security Group to make sure port 22 is not blocked. The Network Security Group is not blocking traffic to port 22. Are there any suggestions for resolving the 'Connection timed out' error?

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

3 answers

Sort by: Most helpful
  1. Leon Laude 85,221 Reputation points


    Something here might help:

    Troubleshoot SSH connections to an Azure Linux VM that fails, errors out, or is refused

    Best regards,

    1 person found this answer helpful.

  2. Manu Philip 14,551 Reputation points MVP

    Hello @Brittany,

    I suggest you to go with the following Easy way to SSH into Azure Kubernetes Service cluster node VMs (kubectl-plugin-ssh-jump)


    Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion



    0 comments No comments

  3. Ronen Ariely 14,646 Reputation points MVP

    Good day @Brittany ,

    The following Microsoft official document provides step-by-step explanation on how to connect with SSH to Azure Kubernetes Service (AKS) cluster nodes


    Note: I recommend to follow the tutorial and create new test machines. Once it is working well, go back to your real live VM and implement it. This way you will already have an understanding of the procedure and a working test.

    0 comments No comments