Password Recovery

Sorry for maybe asking a question that has been asked before, but the searches came up empty for my situation as to how to alleviate my problem. First off, I know little to nothing about Home Assistant as I only did some experimenting with it a few years ago. So here is my problem, I installed Home Assistant on a Raspberry 4 Model B and it is currently running Home Assistant OS 7.0 with Home Assistant Core 2021.12.6. I can SSH to the device, but via browser to 192.168.1.25:8123 to login, the username and password I had stored keeps coming back with “Invalid username and password”. The id and password I use to SSH is NOT the same as what I am trying to use via the browser. I am getting to the point of just reinstalling everything, but I did do some things that I was trying to at least recover from back when I was messing around with Home Assistant a few years ago. So my question is, is there a user/password file I can access via the CLI to either see what the user and password is to login via the browser?

From I'm locked out! - Home Assistant
using SSH :

  • Note: existing_user is a placeholder. Replace it with your username.
  • Note: new_password is a placeholder. Replace it with your new password.
  • Command: auth reset --username 'existing_user' --password 'new_password'

I tried that, but I get a message about auth not being found. What I found about that was that I issued a command in the wrong “mode” (what I can recall from the info). Based on that I had no idea how to get in the other “mode” to be able to issue the command in the proper spot.

can you attach a keyboard and monitor to your pi ?

This is what I encountered when entering that command.

  • Troubleshooting: If you see the message zsh: command not found: auth, you likely did not enter the command in the serial console connected to the device itself, but in the terminal within Home Assistant.

No idea how to get to the “serial console”

This ^ a keyboard and monitor

I could, but I have a terminal session via Putty open already

You have ssh’d into a container, you need to access the OS direct. If you never enable the SSH on port 22222, only method left is a keyboard and monitor

ahhh, light bulb goes on… Now I need to find a cable, that I know have somewhere around here…

Hooked up the monitor and keyboard, rebooted and issued the auth command and received “Error: Unkown error, see supervisor”

Checked “supervisor logs” and it was empty, so reloaded the supervisor “supervisor reload” and then retried the auth command and all is well now. Just need to upgrade it all after 3 years or so of not doing so…

2 Likes