Closed koying closed 3 years ago
Ah, nevermind (I guess). Using an auto-generated key works, so probably an issue of mine with the key I was using.
Thanks for providing the log.
How did you obtain the key?
I'm by no means an expert on cryptography, so I don't know what the problem is. But it sounds like you resolved this. Can this issue be closed?
The key came from a pure adb installation (i.e. a ".android") Once approved, there is no issues, so it's not a crypto issue per se.
But yeah, auto-generated is fine (and even better) so I'll close.
Do you have two key files: /config/adbkey
and /config/adbkey.pub
?
I think config validation checks for both. But there was an issue a while back where the public key wasn't getting loaded and that caused behavior like what you're describing.
My last guess is line endings (LF vs. CRLF) causing issues with the private and/or public key files.
Yes, I have both, with same EOL type and final EOL.
Doing more tests, I might not actually have used that key to connect to the devices with "plain" adb before. I now did, and now it works from HA as well, without re-asking for authorization.
Peculiar... Maybe some hidden stuff in the protocol?
Description
Each time I restart HA, I'm asked to approve the adb key, even if I check "Always authorize" The key thumbprint is always the same.
As the adb connection works with "plain" adb, I assume it is an issue or with the lib, or with my specific setup.
Log