I was able to SSH into Ubuntu VM and things were working fine. Last time, I made some change to /lib/systemd/system/ssh.service (ssh daemon) which loads my shared library. Unfortunately, before stopping the VM I forgot to undo the changes and now, due to my shared library, it seems that the sshd is unable to open a socket. As a result, I am unable to ssh into my VM. I think if I get access to VM and undo the changes in /lib/systemd/system/ssh.service then things will work perfectly.
I don't whether there is another way of accessing my VM and it seems that the SSH is the only way to access, therefore, I have ended up in this situation. I have tried both RDP and Azure Bastion, and nothing is working. I am not whether I created any password and the ones that I remember are not working.
How to access the VM? What can I do to safe the data in my VM?
Please let me know. Thanks!