Access to the whole filesystem on Hass.io

Hi all,
If I ssh to my Hass.io on Pi, will I be able to see the contents of the shares of the Samba addon?
Where are they located from /?
I see many posts that point to /home/homeassistant/.homeassistant, but I could only see this in the /home folder:

root@hassio:/home# ls -la
total 3
drwxr-xr-x 3 root root 1024 Jul 17 16:01 .
drwxr-xr-x 22 root root 1024 Sep 17 19:47 …
drwx------ 4 root root 1024 Sep 17 19:44 root

I am trying to put somewhere a snapshot of my camera but I do not know where to store it, and how to find it later.

Thanks in advance.

OK.
I have found them at /resin-data/homeassistant.
But… If I put this in the configutarion.yaml:

whitelist_external_dirs:

  • ‘/tmp’

Is that /tmp relative to the / or /resin-data/homeassistant?

The smb shares are right off of / . So /config is the config share, /share is the share folder, etc.

When I log in with
ssh [email protected] -p 22222
what I find at / is this:

root@hassio:/# ls -la
total 376
drwxr-xr-x 22 root root 1024 Sep 17 19:47 .
drwxr-xr-x 22 root root 1024 Sep 17 19:47 …
drwxr-xr-x 2 root root 3072 Sep 17 19:47 bin
drwxr-xr-x 2 root root 1024 Sep 17 19:44 boot
drwxr-xr-x 15 root root 13640 Dec 19 17:40 dev
drwxr-xr-x 33 root root 2048 Sep 17 19:47 etc
drwxr-xr-x 3 root root 1024 Jul 17 16:01 home
drwxr-xr-x 9 root root 3072 Mar 23 2017 lib
drwx------ 2 root root 12288 Sep 17 19:47 lost+found
drwxr-xr-x 2 root root 1024 Sep 17 13:43 media
drwxr-xr-x 5 root root 1024 Sep 17 19:45 mnt
dr-xr-xr-x 158 root root 0 Jan 1 1970 proc
drwxr-xr-x 3 root root 1024 Sep 17 19:47 quirks
drwxr-xr-x 5 root root 1024 Sep 17 19:47 resin-boot
drwxr-xr-x 8 root root 4096 Dec 13 15:21 resin-data
-rw-r–r-- 1 root root 347132 Sep 17 19:47 resinos.fingerprint
drwxr-xr-x 16 root root 500 Dec 19 17:40 run
drwxr-xr-x 2 root root 2048 Sep 17 19:47 sbin
drwxr-xr-x 2 root root 1024 Sep 17 18:59 srv
dr-xr-xr-x 12 root root 0 Jan 1 1970 sys
drwxrwxrwt 8 root root 160 Dec 19 17:40 tmp
drwxr-xr-x 10 root root 1024 Mar 23 2017 usr
drwxr-xr-x 8 root root 1024 Sep 17 19:16 var

HASS.IO runs on docker. The underlying OS that the docker container is running on is called ResinOS. In your HASS config, if you tell it to ignore /tmp that is INSIDE the docker container, and has nothing to do with the OS running as the host.

Did you build this with the hassio image, or built it with your own docker environment?
Have you installed/configured the Samba and ssh add-on?

If so, you should see addons, backup, config and share which are the samba shared folders.

Here is the output on my Pi3:

core-ssh:/# ls
addons  config  etc     media   root    sbin    ssl     usr
backup  data    home    mnt     run     share   sys     var
bin     dev     lib     proc    run.sh  srv     tmp

I think the difference here is that you are SSH’d in using the SSH add-on, and the OP is SSH’d into the host ResinOS

Yes, is a Pi3 with Hassio image.
I see them now. I have enter with:
ssh [email protected]
But not with:
ssh [email protected] -p 22222

Thanks a lot.

Is this possible in PuTTY? I need to get access to the underlying Linux but I don’t SSH in with -p or 22222, well not that I’m aware of!

Thanks,
Rob

It’s possible to connect via PuTTy

Why? It doesn’t have the tools a normal linux distro would have, and you are extremely limited on what you can do.

If you are using hassio, and not some other installation method, you HAVE to use port 22222 if you want to get outside of the containers to the underlying OS.

I need to install cgate to be able to connect to my cbus HA system. I’m trying to follow the below instructions:

I thought he was logging in with -p 22222 and not getting into the OS. Will I be able to install cgate with the Hass.io OS?

Thanks,
Rob

That’s not going to happen on Hassio/ResinOS/HassOS at this time.

Yes, you absolutely can get into the OS that way, ON HassOS/ResinOS-based HASSIO installs. But it won’t do any good. They are NOT general Linux Distros.

No.

If you need to install things like that, then you will want to install Hassbian or Raspbian + Home Assistant

1 Like

Ok thanks for the quick reply! Time to move to Hassbian, will I be able to reuse my yaml files?

Rob

absolutely. The config directory is portable between all installation methods of Home Assistant.

1 Like

I use Home Assistant (was Hassio) and I can get into it with putty via ssh on port 22. How do I configure the ssh so that I can get to port 22222? When I try with my current setup and only change the port from 22 to 22222 on putty it is refused. Thanks.