Hi Hap - well, it’s four years since I wrote that post, and 4 years is a very long time in HA! Many things may have changed, including the most common ways people run the system.
For what it’s worth, and in case any of this is useful to others, I’m now running mine using the standard x86 configuration of the HA OS on an Intel-NUC-type device. I’m actually running it in a virtual machine under Proxmox, because it was too much hassle to overwrite the hard disk at the time, but I think it is much the same as if I were running it directly on the bare metal.
In this configuration, there isn’t an SSH daemon running in the top-level OS. (I don’t know if that’s the same on the standard Raspberry Pi OS image - it sounds as if yours does have one running.) The console of the VM shows me the HA console program, and I can type ‘login’ there to get to the host (though I note that this still isn’t listed in the available commands).
I have the ‘Terminal and SSH’ add-on installed, which allows ssh connections from outside to port 8022, and it, like other add-ons, is a Docker container, so when I ssh into it, I’m inside that container. This is the same place that you end up if you go to the Add-On’s page itself and click ‘Open web UI’ to get a terminal.
In that world, some useful things like the config
, addons
and backups
directories are mounted in the root directory as /config
etc. There are also symbolic links to them in the root user’s home directory, so if you log in and just do ls
, you get a nice list:
[core-ssh ~]$ ls
addons backup config share ssl
[core-ssh ~]$ ls -l
total 0
lrwxrwxrwx 1 root root 7 Sep 2 18:20 addons -> /addons
lrwxrwxrwx 1 root root 7 Sep 2 18:20 backup -> /backup
lrwxrwxrwx 1 root root 7 Sep 2 18:20 config -> /config
lrwxrwxrwx 1 root root 6 Sep 2 18:20 share -> /share
lrwxrwxrwx 1 root root 4 Sep 2 18:20 ssl -> /ssl
Lastly, the ha
command-line tool is available, which lets you do various things from this ssh connection much as you would from the console itself, but not everything: several commands I tried gave me permission errors. (My understanding is that this ha
client is connecting to the endpoint provided by the supervisor
container.)
But I don’t think there’s a way from this ssh session to escape from the container and get to the parent host: I wouldn’t expect one. I think the only way to do that at present on a standard HAOS install is to go to the machine’s console and type ‘login’, or to set up an SSH server on the host itself.
Q