Share via

Cannot SSH into the Server anymore.

Jamie Na 1 Reputation point
2021-01-26T08:03:16.44+00:00

Hello.

I was able to SSH into my VM linux server just fine until yesterday but not anymore. I do believe it is due to something I did.

The 2 things that I did which might be the cause:

1) My tried to change the mysql.cnf and my.cnf files but it wasn't giving me permission.

2) I SSH'd and input commands to give me access to the /etc folder and subfolders. After this action, I am unable to access.

Now that I can no longer SSH into the server, I am unable to undo what I did or even backup the files to put into a new VM.

Please help me.
Thank you very much.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

1 answer

Sort by: Most helpful
  1. cheong00 3,491 Reputation points Volunteer Moderator
    2021-01-26T08:09:23.4+00:00

    If your VM is built with default install image, see if you can access via Azure Serial Console for Linux.

    I think in some point of time, daemons like sendmail will shutdown and refuse to start if it find out your config folder have write access for everyone. (In my case it's some script on FTP server to change access for everyone in recycle bin, but someone deleted the recycle bin folder, and the script didn't check the existence of folder, to it begin to set 777 permission for everything - plain disaster) Not sure if it is your case.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.