#Hello guys, I'm trying to create a
1 messages · Page 1 of 1 (latest)
Probably the problem is https://blog.ceard.tech/2020/05/home-assistant-docker-and-using-ssh
ssh can't find the user key, or accept the host key
I thought the same, but I tested it manually and it works fine, and as I said in the previous post it works just fine if I don't add the grep part of the command. So I thought that it didn't support grep but in the command line documentation there is an example using grep for binary sensor.
Did you test it from inside the HA container?
yes
Well, keep in mind that the next time you upgrade HA it'll fail as written 😉
???
Because:
- It can't find the user key in
~/.ssh - The host key is unknown and it can't accept it
(aka, read the article linked above)
You can only get away with bare ssh on a pure Core install
I previously copy the necessary ssh keys for it to work and as I'm using HA with docker compose I just mirror a folder to the container with the keys for every time it restarts.
Ok... ugly, and not needed, but if it works for you
ok.... so any idea why it don't work when I add the grep part?
So... the first obvious thing is that we need to see the whole binary sensor definition