Cant connect to Linux Gen2 VM

Joe 0 Reputation points
2023-05-10T15:13:49.2466667+00:00

Hey all i need some assistance, so im trying to set up a linux vm gen 2 i believe and i keep getting timed out of it whenever i try to connect. When i run through all the trouble shooting steps everything works and is in the green, but from the terminal i just cant connect. A little more background, to connect i am using ssh and a private key. When i hit connect on the ui i Im not meeting a port pre-req, i need to add an inbound rule but i do have that setup as well.

Screen Shot 2023-05-10 at 10.07.19 AM

After hitting this, i ran verbose in the command and go debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve;. Any help would be appreciated!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,333 questions
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 37,846 Reputation points Microsoft Employee
    2023-05-10T18:28:35.04+00:00

    @Joe

    Sorry to hear you are having issues connecting to your Linux VM over port 22. "When i hit connect on the ui i Im not meeting a port pre-req" Based on this it sounds likely that there is a Network Security Group or Firewall that might be blocking the connection. You said that there is an inbound rule allowing it, but perhaps there is something else that might be missing.

    To diagnose the issue with port 22, you can follow the steps mentioned here. This will allow you to troubleshoot and see if there are any NSG rules which might be unexpectedly blocking that port. For comprehensive network troubleshooting you can use the Network Watcher to run testing and diagnostics.

    Hope this helps. If you are still unable to resolve the issue please let me know!


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    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.