Cannot connect to Azure VM

Kletter, Stephen 1 Reputation point
2020-01-30T02:51:38.897+00:00

Hello,

I'm unable to SSH into my Microsoft Azure VM. Attempting to SSH in via Terminal is met with either "Connection closed by 52.179.20.244 port 22" or "Connection reset by 52.179.20.244 port 22" and attempting to connect via PuTTY resulted in a fatal error reading "Remote side unexpectedly closed network connection". The basic troubleshooting steps have been ineffective. One of my team members modified the permissions of /var on the server right before the issues began, leading us to believe that may be the cause of the issue. Any assistance in resolving this issue would be much appreciated.

Thanks,
Stephen

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

1 answer

Sort by: Most helpful
  1. jakaruna-MSFT 596 Reputation points Microsoft Employee
    2020-01-31T04:58:50.39+00:00

    One solution is to stop the vm and then connect that vms disk to other healthy vm
    and revert the permissions of the /var directory.

    Once the permission is reverted, Attach the disk back to the original vm or create a new vm with that disk.

    Also take a snapshot of the disk for safety before modifying it.

    1 person found this answer helpful.
    0 comments No comments