Full root access to HomeAssistant Server

The ssh server provided by the HomeAssistant extension only gives you minimal access. You only have the hs cli and access to the config directory.
In order to get full access to your server where the docker images are running you need the admin access as root on port 22222 with ssh. Here is how you can get this.

What you need

  • running HomeAssistant server
  • USB Stick formatted with FAT
  • ssh keypair for your account

The USB stick must have the name CONFIG (capital letters). You copy the contents of your public key file (e.g. ~/.ssh/is_rsa.pub) to the root of the USB stick in the file authorized_keys.

Then connect the USB Stick to your HomeAssitant server. Either reboot the server or on the WEB SSH Terminal that you can reach via the HomeAssitant GUI or any SSH connection to the SSH server you enter the command: ha os import

[core-ssh /]$ ha os import
Command completed successfully.
[core-ssh /]$

After that you will be able to connect to the SSH server of the root system on port 22222:

ssh root@homeassistant.local -p 22222

Please be very careful here. You need to know exactly what you are doing. It is easy to screw up the whole system.

Eine Antwort auf „Full root access to HomeAssistant Server“

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert