DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there!
I'm new at LQ, and I asking for help already ....
I have installed and configured Debian 8.5 at a VPS (DigitalOcean). Then my 1st task was install and configure PostFix. Once I have finished to do this, I was analysing an smtp service error, when I suddenly lost root access to the server, receiving the following message: "authentication failed. remaining authentication methods 'publickey password'".
Although I have many years administering Unix/Linux servers, this is the first time I lose root access to a Linux platform (and my 1st time also using a third party VPS).
What am I supposed to do in order to recover root access...? (from outside the OS!!!)
Hi, Emerson.
Not using other user than root, and I didn't set up key-based root login (that I'm aware of ... )
In this scenario, I start my next working day not being able to login as root, so I have no control over the OS ... ;(
Thanks for your quick replay!
Ok, I will leave the investigation about why this could happen for later, and I will focus on the key-based login method so I can recover access to the OS. So... is it this possible from outside the OS?
Emerson, is what I was affraid of... never happened to me to lose a Server in more than 20 years!
It's my first experience with Debian, but I don't really know what happened so I cannot blame the distribution and I can't even blame myself since the only configuration I was working on was the PostFix.
Time to start the deployment of Debian all over again from scratch.
Thanks for your time and help.
Long life to Linux! (and the Unix Spirit!)
Alec.
Hi Kaz!
I'm brand new to VPS services... this was my first experience in deploying a Linux Server there, so the root login issue took me by surprise, not having a bkp image yet and without knowing how to replace the physical procedures we have when the servers are right with us... like the rescue mode.
I have to ask DigitalOcean if they have anticipated options like a "virtual rescue mode" or something like that... :{
So, long story short... I couldn't go for the rescue mode and, as far as I know, I had no option ... I did a fresh deploying of the OS (the server is not in production yet and the only lost job was the PostFix configuration).
Kaz, about Expert Install, not for the recovering need but for the deploying, I'm using the One-Click Linux Images offered by DigitalOcean, Debian 8.5 in this case, and then I customize as needed.
I am not familiar with VPS, nor with DigitalOcean. Thus I may be wrong.
With keyboard-based login on VPS, try send "shift" key at boot to guest debian virtual machine. It may invoke grub2 screen. On grub2 screen, you may be able to select and boot recovery (rescue) mode.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.