Failed to access Linux VM created in Azure

Haza Hafiz Riski 45 Reputation points
2024-11-07T03:16:46.9+00:00

Yesterday I created a Linux VM in Azure and I was able to access it via Putty with port 22. Today, I tried to access with Putty and PowerShell but failed after logging in with the error description as below:

User's image

User's image

I have tried disabling firewal on my device but still experiencing problems. I also did not make any changes on the Azure network side.

Here is the configuration of the network side in AzureUser's image

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,762 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 49,536 Reputation points Microsoft Employee Moderator
    2024-11-07T04:37:12.8733333+00:00

    @Haza Hafiz Riski ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that you are unable to SSH to a Linux VM in Azure.

    From the looks of it,

    • This looks more like a OS related issue than Azure(platform) related
    • When I do a TCP Ping/Telnet to your Public IP on Port 22, I am able to receive a response
      • This means that Azure is not blocking the traffic at platform level
    • I would suggest you post this query in forums related to your Linux distros to get SMEs inputs as well.

    With that said,

    • Are you using Public Key authentication or Passwords? or Both?
    • I see you are using a ".pem" format, but shouldn't Putty be using a ".ppk" format?
      • Can you confirm that you used .ppk key while trying to access via Putty?
    • Can you run the same command with "-v" parameter for debugging?
      • ssh -v -i "<PathToPrivateKey>" mt4adm@57.155.89.109
    • If possible, can you try Resetting the password?
      • Either by using Password or adding a new Public Key to the Linux VM
    • Deploy a dummy testVM in the same subnet as the LinuxVM
      • RDP/SSH to this testVM and then try to access the Linux VM from this testVM
      • Does this work? Are you able to access the LinuxVM from the testVM in the same subnet?

    Cheers,

    Kapil


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.