Install Hassio On Docker



Hassio

Sometimes you have to execute commands on your Home Assistant server. For this, as in many other devices, there is the option of remote access by SSH (Secure Shell). This gives us the option to recover our server in the event of a failed configuration or execute commands at a low level to have greater control and be able to perform actions that would otherwise be impossible.

Hass.io gives us an Add-on that offers both, creating an SSH server, based on OpenSSH, and a Web Terminal to launch commands.

20 minutes is a 'guesstimate'. It all depends on your internet speed. HassOS is simply a docker host, and on first boot it goes out to the internet and grabs the docker images it needs to run. When I was on 5mbps internet, it took nearly an hour to get the home assistant docker image. From the installation page you linked to and said you followed. Install to SATA, eMMC, NAND or USB. (Document management system within Docker. Transmission lamp tvheadend plex-media-server openhab radarr ispconfig nas hassio.

  1. The menu can be used to install docker and build the docker-compose.yml file necessary for starting the stack. It also runs a few common commands. I do recommend you start to learn the docker and docker-compose commands if you plan on using docker in the long run.
  2. Sometimes you have to execute commands on your Home Assistant server. For this, as in many other devices, there is the option of remote access by SSH (Secure Shell). This gives us the option to recover our server in the event of a failed configuration or execute commands at a low level to have greater control and be able to perform actions that would otherwise be impossible.

The SSH & Web Terminal Add-on

First of all, the SSH & Web Terminal Add-on is extremely powerful, giving access to all server tools, commands, files and hardware. It is necessary to create a secure configuration for the Add-on and know the commands to be used to avoid possible damage.

Even with all the power of the Add-on, the installation and first uses are very simple. Let’s see it.

Installation and configuration

As in other articles, the installation passes by accessing the Hass.io menu in the left panel of the Home Assistant web interface and then searching for the SSH & Web Terminal Add-on within the Add-on Store tab.

Inside, click on Install, once installed, enable the options: “Start on boot”, “Show in sidebar” and “Protection Mode”. The latter is necessary to give elevated permissions to the Add-on to execute certain commands.

Install hassio in docker redditDocker

Before activating the Add-on, on the page, scroll down to the configuration section and enter the following code:

If SSL protection is not used, deactivate the ssl node with the value false, and delete the certfile and keyfile nodes.

The configuration is prepared for a server configured from the previous articles. It is only necessary to change the SSH username and password. The rest can be ignored unless an advanced configuration is desired.

Save by clicking Save and at the top of the page click Start. It is also recommended to restart the Home Assistant server so that all changes are applied.

Testing

Install Hassio On Debian Docker

Once started, the Terminal section will appear on the left side panel. If you enter, it will load a Terminal window where commands can be executed. Again, beware of the commands you are going to execute.

Finally, in order to connect remotely via SSH, it is necessary to open port 22 on the Internet connection router and redirect together with the IP to the Home Assistant server. In the configuration of the Add-on itself there is a section to be able to change the port for another one.

From Putty or a remote terminal with SSH installed, just run the command ssh -p 22 SSHUSER@YOURDOMAIN.duckdns.org and type the password previously configured to access the server.

Install Hassio On Docker Ubuntu

Conclusion

From now on you will be able to access your Home Assistant server remotely and securely to execute commands, as well as execute commands directly from the Home Assistant interface with all the power and versatility that this offers.

Install Hassio In Docker Reddit

This and other articles complement the documentation of the GitHub repository where all the configuration of my house is available.