question

KletterStephen-4829 avatar image
0 Votes"
KletterStephen-4829 asked ·

Cannot connect to Azure VM

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
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Are you using key based authentication

0 Votes 0 · ·

Is there any update? Let us know if the solultion provided below helped?

0 Votes 0 · ·

1 Answer

jakaruna-MSFT avatar image
1 Vote"
jakaruna-MSFT answered ·

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.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.