Score:0

Unable to login as root user

az flag

[Ubuntu server]

I was able to login to the server just fine for days. And now I cannot login with the root user with password and private key both are not working.

Luckily I am currently logged in as the root user. Basically I logged in as the root user and have been doing stuff for a couple of hours and then I went to another terminal to login with and it just does not work. I get "Permission denied, please try again."

In /etc/ssh/sshd_config i have this set

"PermitRootLogin yes".

In the authorized_keys I still have my public key set

ssh-ed25519 AA...{it's the whole key in they file}...Ddw

And since I didn't change anything regarding the login options. The best thing to assume is that someone entered the system. Ok great but now still persists the issue why can't I login because what I did was change the password with

passwd root

and after the change I try to login but I cannot.

This is the output from ssh -vvv image

in flag
Please check the log files for messages about your login attempts. Running the ssh client with `-vvv` could also be helpful.
DENIS DENIS avatar
az flag
@GeraldSchneider I've edited the post with the image that is given when running with -vvv, and the log files are a bit messy because the ssh is running on port 22 and it's allowed to use password for login so there is alot of login attempts from china...
in flag
Well, without the log files there is no way to diagnose it. And please, don't post screenshots of text that you could copy&paste. You are just making it harder to extract information out of it.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.