ssh not connecting

David Leo 0 Reputation points
2024-05-16T10:18:51.65+00:00

virtual machine agent status not ready, unable to connect to ssh cli, vm is down

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,968 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
359 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,341 Reputation points Microsoft Employee
    2024-05-23T06:30:31.0166667+00:00

    Hello, @David Leo !

    Why won't my VM start? Why isn't the agent responding?

    If your VM won't start and the VM agent isn't responding, you won't be able to connect to your VM via SSH. This is the order that I would address the issues that you mentioned:

    1. Make sure the VM can start: There are many issues that might cause a VM to not start. Usually collecting logs or error messages will help narrow down the troubleshooting but you can reference the extensive list of issues that would cause a VM to not start as well as the solutions.
    2. Troubleshoot Linux VM agent: Once the VM is started, you can check the VM agent. Make sure it's running, enabled auto-update, and confirm that it can connect to the Fabric Controller using a tool like curl to test whether the VM can connect to 168.63.129.16 on ports 80, 443, and 32526.
    3. Troubleshoot SSH connection: The quickest troubleshooting for SSH connections are to reset the SSH configuration, reset the user credentials, verify the network security group allows SSH traffic (TCP port 22 by default), check the VM resource health, restart the VM, and redeploy the VM if need be.

    Additional information from logs or error messages will help in identifying what troubleshooting steps are most helpful. If you've completed the troubleshooting steps yourself and are still not able to determine the cause, let us know in the comments and we can try to troubleshoot this further.


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments

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.