Debugging HassOS

I’m wondering how to get into the host, as the documentation is slightly lacking here.
In hass.io, you were able to mount the sd and read at least one partition. With HassOS, this is no longer the case.
The supported method of inserting a USB stick with the authorized_keys file in the root does not seem to work either (source: https://github.com/home-assistant/hassos/blob/rel-1/Documentation/configuration.md#automatic )

What are the steps that need to be performed to get into the host?

Install the ssh addon.

Huh?? It works perfectly well…

This is only for the hass container itself, correct? Thats the port 22.

To recap, i created a public/private key pair on mac. copied the public key to a file called authorized_keys and put it in the root of a NTFS formatted stick (which is should accept) according to the documentation and than gave it a reboot. What am I missing. What Nickrout suggests is an addon only meant to get into the hassos container, correct?

The USB auth keys enables debug on port 22222 not port 22

I’m aware of port 22222.
However, that USB doesn’t seem to have worked for me, hence the topic.
I recapped above what i did, but it didn’t work for me.

ssh [email protected] -p 22222
ssh: connect to host 10.19.23.10 port 22222: Connection refused

SSH just does not seem to be active.

When connecting to port 22 i get the container:


  _    _                 _____ ____
 | |  | |               |_   _/ __ \
 | |__| | __ _ ___ ___    | || |  | |
 |  __  |/ _` / __/ __|   | || |  | |
 | |  | | (_| \__ \__ \_ _| || |__| |
 |_|  |_|\__,_|___/___(_)_____\____/


Our Cli:
$ hassio help

debug1: permanently_set_uid: 0/0

Hence, my public key works and is accepted in that add-on. Now I just need to get it to work on the host. Is there another way of transferring it or checking whether SSH is active on the system?

Is the port 22 session actually using the public/private key? I am thinking your public ket may not be in the correct format.

Yes it is. And im using the same pub key on more machines as well. That’s why I’m wondering whether there is something going wrong with the import process. I guess ill try a differently format SD card later today or tomorrow.

same issue here. used to work with hassio previously

I’m having the same problem here too: my public certificate is in a text file /authorized_keys, and I’m trying to ssh into the server on port 22222 with my private key and getting ‘connection refused’.

If you use the ssh client with -v you will get debug info. Keep adding v’s for more info, like

ssh -vvvv hostname -p 22222

Did any of you solve this?
I am trying to update the firmware of my raspbee and need to get into the host via port 22222.
I have made the authorized_keys file containing my public key and placed it on the root of the boot drive on my sd-card.
I use putty with my private key, ip of my pi3 and port 22222 and i get connection refused.
The ssh to the ssh plugin on port 22 works fine.
Why do I get connection refused when trying to connect via port 22222?

https://developers.home-assistant.io/docs/en/hassio_debugging.html

Wait… What???
The ‘firmware is included in the Operating System… there is no firmware update you flash to a chip… it’s just software that is installed in the O/S and that’s hass.os. You will not be successful in doing this.

@DavidFW1960 I think you are confusing raspberry with raspbee. https://www.dresden-elektronik.de/funktechnik/products/boards-and-kits/development-boards/raspbee/?L=1

You’re right 100% I am…

I have followed both of these links when setting up my ssh to host at port 22222 but I still get the connection refused error when using putty.
I do not understant what I’m doing wrong. Is it something I need to enable or disable to get it working?

https://developers.home-assistant.io/docs/en/hassio_debugging.html

You appear to be using the resinos method. Resinos is no longer used.

Thank you. Could you explain how to use the new method? Or could you send me a link to where I can find the correct method?