I configured hass.io for remote shutdown like described here
working fine, until i need to restart hassio/raspberry, then the keys are gone. So i think hass.io is reseting the root folder where the keys are stored after reboot. How or where can i store this files so they get not removed after reboot.
Same problem with fingerprint on ssh connection. First time hassio ask for adding the fingerprint of the ssh connecting, but next time it asks again.
I can not use shell_command for remote shutdown when ssh keys and fingerprint getting lost after reboot. Sure if no reboot it is ok, but sometimes the restart hangs and i need to reboot the machine.
The SSH addon is working well for me (hass.io 0.51.2). It stores keys in the /data directory (see here) which is persisted to the docker host (addon doc).
Ah, that is true. But in the run script you can see that ~/.ssh/known_hosts it is populated from the addon’s config when the SSH container boots up (code). So the fix is to add your public key string to the addon config.
It is working now with this line, after storing the key into the data folder and pointing to it for moving the key from here to target and for ssh connection it works fine, thanks guys.
Yeah but no i have the next problem, running the line direct in hassio over terminal works but when using as shell_command in home assistant config it is not running, no idea why. Tried to find the logs but hassio says docker not found. https://home-assistant.io/developers/hassio/debugging/
Oops! You’re right. I was reading too quickly. I’m still not having the issue reported by the original poster though, so not sure what’s different for me.