#Hello guys, I'm trying to create a

1 messages · Page 1 of 1 (latest)

wind zinc
#

ssh can't find the user key, or accept the host key

muted stream
#

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.

wind zinc
#

Did you test it from inside the HA container?

muted stream
#

yes

wind zinc
#

Well, keep in mind that the next time you upgrade HA it'll fail as written 😉

muted stream
#

???

wind zinc
#

Because:

  1. It can't find the user key in ~/.ssh
  2. 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

muted stream
#

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.

wind zinc
#

Ok... ugly, and not needed, but if it works for you

muted stream
#

ok.... so any idea why it don't work when I add the grep part?

wind zinc
#

So... the first obvious thing is that we need to see the whole binary sensor definition