This method will not work using SSH Add-ons, as you need to access the command line through the physical machine running your Home Assistant instance. Therefore, this does not compromise your security, as these commands cannot be ran remotely.
The console should open automatically and show up on the monitor. In the Home Assistant command line, you can now enter a command. For example, if you are locked out, you can change your password: auth reset --username existing_user --password new_password
01. Access the CLI as shown in the video 02. Type - "cd config/.storage" 03. Type - "nano auth" 04. Find the username you need to edit, and change it. 05. Press - "CTRL + O" -> "Return" -> "CTRL + X" 06. Type - "nano auth_provider.homeassistant" 07. Find the username, and change it. 08. CTRL + O -> Return -> CTRL + X 09. Type - "ha core restart" 10. Type - "exit"
I don't have access to a green to test this myself, but other green users have confirmed this should work. Did you connect a screen to the green and use the command line like in the video? Or did you try using one of the SSH add-ons?
This method will not work using SSH Add-ons, as you need to access the command line through the physical machine running your Home Assistant instance. Therefore, this does not compromise your security, as these commands cannot be ran remotely.
why wouldn't it?
ssh to ha
execute the same command: ha auth....
the only difference is: the file is not in /mnt/data/...but /config/.storage/...
@@zyghomWhen I tested this it would not work through the SSH add-on. This could have been related to my set-up, or user error.
Thank you! this process worked great for me
I am glad it helped you out!
Great.
Brilliant. Thanks.
You're welcome!
The console should open automatically and show up on the monitor.
In the Home Assistant command line, you can now enter a command.
For example, if you are locked out, you can change your password:
auth reset --username existing_user --password new_password
Many thanks for your tipp! With greetings from Germany
Scan Train
You're welcome!
hi, thanks! it works.
Thank you soooo much you saved my life ❤️
You're welcome!
"login: Cannot possibly work without effective root"
Any other ideas?
How about reseting username ?
01. Access the CLI as shown in the video
02. Type - "cd config/.storage"
03. Type - "nano auth"
04. Find the username you need to edit, and change it.
05. Press - "CTRL + O" -> "Return" -> "CTRL + X"
06. Type - "nano auth_provider.homeassistant"
07. Find the username, and change it.
08. CTRL + O -> Return -> CTRL + X
09. Type - "ha core restart"
10. Type - "exit"
doesnt work with green
I don't have access to a green to test this myself, but other green users have confirmed this should work. Did you connect a screen to the green and use the command line like in the video? Or did you try using one of the SSH add-ons?
Yes doesn’t work with the green. Keeps coming up as no such file or directory.