Unable to SSH in Ubuntu VM

Brittany 1 Reputation point
2020-06-11T15:43:36.73+00:00

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.
7,164 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Leon Laude 85,666 Reputation points
    2020-06-11T15:56:04.273+00:00

    Hi,

    Something here might help:

    Troubleshoot SSH connections to an Azure Linux VM that fails, errors out, or is refused
    https://learn.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshoot-ssh-connection

    Best regards,
    Leon

    1 person found this answer helpful.

  2. Manu Philip 16,986 Reputation points MVP
    2020-06-11T19:18:46.883+00:00

    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)

    https://github.com/yokawasa/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

    Regards,

    Manu

    0 comments No comments

  3. Ronen Ariely 15,096 Reputation points
    2020-06-11T23:54:31.51+00:00

    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

    https://learn.microsoft.com/en-us/azure/aks/ssh

    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