My situation is quite similar:
- two RPi with Libreelec (Kodi)
- first RPi with HA in Docker
How to open SSH without entering password manually from one Rpi to another?
Update:
Found a solution here:
- Run a command:
ssh-keygen
Output:
Generating public/private rsa key pair.
Enter file in which to save the key (/storage/.ssh/id_rsa):
Enter passphrase (empty for no passphrase): PRESS ENTER
Enter same passphrase again: PRESS ENTER
Your identification has been saved in /storage/.ssh/id_rsa.
Your public key has been saved in /storage/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The key's randomart image is:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-
Run a command:
cat ~/.ssh/id_rsa.pub | ssh root@IP_ADDRESS_OF_DESTINATION ‘mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys’ -
Run SSH without a password:
ssh root@IP_ADDRESS_OF_DESTINATION
Output:
##############################################
# LibreELEC #
# [https://libreelec.tv](https://libreelec.tv/) #
##############################################
LibreELEC (official): 9.2.4 (RPi2.arm)
RPi-1:~ #
- To run a command remotely:
ssh root@IP_ADDRESS_OF_DESTINATION ‘COMMAND’