How to reset password with access to UI and SSH?

I’ve copied my backup image of HA back onto my Pi4 to tinker around with during the Easter break. Because I’ve previously logged into HA from my desktop I was automatically logged in, however on my laptop I’m unable to do so because I’ve rather foolishly forgotten the password I used.

Trying to figure out how I can change the password without creating a new user or resetting it all. I still have access to the Web UI (and logged in), and I also have access via SSH (using the core_ssh addon).

I’ve tried to follow the step here, using the following command in SSH:

auth reset --username existing_user --password new_password

But my terminal returns the following error:

-bash: auth: command not found

Any ideas how I can resolve this?
Thanks in advance.

This should be done from the console at the physical machine using a keyboard and monitor. You get access to a limited set of commands using the “SSH & Web Terminal” add-on web interface or SSH.

This applies to the Home Assistant OS install. If you have the container or VM install, you should be able to do this from the hypervisor or host.