Logged out on my Linux Ubuntu machine and can't login anymore
I worked on the sshd_config file and changed the addAuthorizedKeysFile in it. After that I lost the connection to the server and I am not able to login via ssh again. I have no access to the server. Is there any possibility to login into server without having the possibity to login directly?
This depends on the hoster
Normally you have some kind of rescue system which can be loaded into the ram of your server. From there you are able to mount the harddisks so that you can edit the files. This depends on the hoster. Normally you need to login in to the hoster account to run the rescue mode of the server. Then you need to reboot the system so that you will be able to login in this rescue system.
After you logged into your rescue system you can list all available disks with
after this you need to mount the disk with
mount /dev/md2 /mnt
After the disk is mounted to the rescue system you can use a sftp programme like winscp to go into your files which need to be recovered. There you can then change the wrong code to fix the issue. After this you need to reboot the system again.