How to get access at damn host system?

The SSH 22222 Configurator works well, BTW. Just put your key in the UI, hit start, and reboot

2 Likes

You only need ssh access for this task.

What on earth makes you think apt-get would be installed on a non debian(like) system?

1 Like

Hi,

The answer to your question is: login with root and type an empty password. This gets you to the HA prompt.

From there, simply type login and hit enter. This will kick you straight to the host shell.

Crazy this isn’t documented.

3 Likes

Yes, if you have a monitor and keyboard connected to the machine. Otherwise, nah.

I had the same annoyance, but found something way easier.

The “SSH & Web Terminal” addon provides a pretty shell with access to Docker. You can then use Docker to get full host access like this:

docker run --privileged --pid=host -it alpine:latest \
nsenter -t 1 -m -u -n -i sh

Needless to say, but you’ll be able to completely destroy your installation this way. So keep Protection Mode enabled! :slight_smile:

source

11 Likes

This is probably the most helpful post in this whole community, something that the HA maintainers should have started with! Architecture, then installation alternatives (and WHY), then how to access each component if you decide to run the abomination that is HASS. Or is it HaOS? Running docker on RPi is such an overkill!

Could agree. But then it must be you maintaining the HA variant for the RPi! No? Wouldn’t do that, either :smiley: But then we need to understand that there are many other possible environments for running HA as well. My Synology NAS could do, my Linux server could do, my Windows machine could do and so on. Not to mention different flavours of Windows/Linux/… All samesame, but different. They all use the same HA. So HA simply needs to be something suiting all needs. And the docker approach is one of those possible solutions.

1 Like

Really damn the day i have installed HomeAsistant OS. Or at least devs should provide some info.
Searched through the whole devs site but couldnt find an option to get and alias for an IP.
nmcli con mod
Returns “No such method ‘Update2’” which can not be resilved without understnding the whole thing

Have you tried setting up an alias by ifconfig?

Yes but. Seems it has no effect

Well what is the command you used and the output?

Ok something strange here. Running

ifconfig eth0:0 IP_ALLIAS WEB_MASK up

gave me an error

ifconfig: SIOCSIFADDR: invalid argument

But now it pings. How do i keep it persistent? The classical way through the /etc/network/interfaces?

Good question! I don’t have haos running anywhere at present to try it.

Hi Jason, I made it with your instructions - thanks

I mean the simple answer here is this isn’t supported in HAOS. Everything you can configure about HAOS has been exposed in the Home Assistant UI and/or in the cli. If there’s no way to do what you’re trying to do in either of those places then its not supported.

So you should start with adding a feature request explaining what you are trying to that you cannot and why someone would want to do that.

Guys… this “login” command is not even in logon banner:

image

I was also struggling to find this command.

2 Likes

Man… chill a little bit. What is your actual question?

If you want access to the host the easy way

Make an ssh key on your current desktop

Add this addon to your repositories

Install the Add-on. Paste your public key in the configuration of the add on. Start the add on. Reboot twice. Uninstall the addon

Open up terminal and

ssh [email protected] -p 22222

You’ll have system access in less than 5 minutes. Good luck.

You wanna do some nmcli stuff for vlans and such. Follow this after

Hi!

just replying to this thread if someone wants a simple solution. Also for my own reference :wink:

This is in the category “this works for me” when using Home-Assistant OS and SSH & Web Terminal addon.

  1. disable protection mode from SSH & Web Terminal addon
  2. restart SSH & Web Terminal addon
  3. ssh to homeassistant
  4. docker exec -it homeassistant /bin/bash

Host’s own processes don’t show with ps but the filesystem is accessible