I got it only up and running when copying the public key into
/root/.ssh/authorized_keys for HassIO in VirtualBox and Raspberry Pi.
Note: VirtualBox USB stick looks like not supported.
I found several other methods:
Create SSH keypair on (Linux) host
# Enter password twice
# Generated files:
# Public key: ~/.ssh/id_rsa.pub
# Private key: ~/.ssh/id_rsa
Mount the VirtualBox VDI in another Linux VM and copy
~/.ssh/id_rsa.pub directly into
/root/.ssh/authorized_keys (without file extension).
~/.ssh/id_rsa.pub directly into the SD card
hassos-overlay/root/.ssh/authorized_keys (no file extension).
HassIO HDMI and keyboard
- Create a new file
/config/authorized_keys file via the File editor addon and paste the output of
- Connect a HDMI monitor and keyboard.
- Login with username
root no password and type the following commands:
# Open root shell
# Move created authorized_keys
mv /mnt/data/supervisor/homeassistant/authorized_keys /root/.ssh/
# System reboot
# Start SSH debug
ssh -p 22222 [email protected]<IP>
I hope this is useful.