Login as root user on Raspberry Pi 5

So here’s the predicament I am in. I installed a fresh home assistant instance on a new raspberry pi 5. I am booting from an SSD, not a microsd. When installing home assistant, I was not provided or asked to set a UN and pass for the root level. With the new pis, there is no default UN and pass to get to the root access in the terminal.

With that background, what I am trying to achieve is I’d like to esit the config.txt file to add in usb_max_current_enable=1 so I can use POE to power the pi. I cannot for the life of me get access to that config.txt file. Any help would be appreciated.

This is how I did it and AFAIK there is no easier way.

1 Like

So I generated the keys, added them to the config folder on a usb drive, performed the os import, which finally allowed me to get past the error of connecting via 22222. Now I am at a login screen, which I have zero idea what the default would be…lol

Any ideas how to login here by chance?

Update: when trying to SSH from the HA terminal I get the following:

“The authenticity of host ‘[homeassistant.local]:22222 ([172.30.32.1]:22222)’ can’t be established.
ED25519 key fingerprint is Hash edited for privacy.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added ‘[homeassistant.local]:22222’ (ED25519) to the list of known hosts.
[email protected]: Permission denied (publickey).”

I’m assuming it has something to do with it not seeing the private key pair, but unsure of how to “show it” that private key file.

If you properly have the public key on the pi and the private key in your local ~/.ssh folder you should be able to ssh [email protected] -p 2222 and you’re in.

Yea, no dice unfortunately. When I generated the sshe keys, it didn’t auto save it into an SSH folder, the instructions said to save it to a secure location, which I did. I added the ppk file to the SSH folder in my user directory, but I still get the permission denied error.

Ugh I wish there was an easier way to edit that damn file. lol

Not being familiar with what a ppk file was I ducked it and will now assume you’re trying to use putty on windows. Can you not just install openssh on your windows?

I didn’t even see the reply, sorry about that.

openssh is installed, but even trying to access it through Windows command prompt says permission denied due to publickey.

The good thing is, there is a button on the back of the pi 5 that allows me to temporarily get past the limitation, however I would still like to try to get into the file and make the necessary changes so I don’t have to worry about the manual workaround in the case of a reboot.