To clarify, I’m not bothered by anything you’ve said and I don’t find it wrong. I explained I simply do not understand it and cannot answer if I don’t understand. That could be my fault.
The screenshot you provided is very helpful. Also, if it it saves you any time, you don’t need to hide a private IP address, it’s of no value and doesn’t pose any privacy/security risk.
Based on your screenshot/explanation, I understand that you are able to SSH to the 22222 port and gain root-level access. However, many linux commands are not available to you.
The linux commands are working, you just don’t have many of the utilities and there is nothing in your user directory, so it can be confusing.
Try this (go to the root directory, then list all root files, in long format):
cd /
ls -a -l
You will see your typical root directories.
Now remember that HA is running inside a docker container, so you’ll need to use docker to connect to the operating system (it’s not the root operating system you’re in initially).
Therefore, the next thing you will do is to get a list of running docker containers, like this:
docker container ls
It’s easier to understand the output if you drag your screen to be very wide so that you’re not seeing wrapped-lines.
One of the docker containers that’s running is hassio_supervisor.
To get a shell there, you simply run the shell executable, inside that container. The resulting terminal session you’re in, will be the shell running inside that hassio_supervisor container.
To do this, you’ll run docker, telling it to run “bash” in the “hassio_supervisor” container:
docker exec -it hassio_supervisor bash
However, one important thing to understand is that you’re now inside the HA container, which is similar to what you would be able to do with an HA SSH terminal plugin.
When you are done with that terminal session in HA, you can exit
with that command, and you’ll be back to the root.
Also, about the SCP/SFTP client–
The good news is that you can connect exactly the same way you do by SSH. In other words, use the same approach to connect using a client, such like WinSCP. If you’re using Ubuntu on your client, use the built-in Nautilus file browser and you can connect that way.
One important note…
Once you’re at this stage or considering modifying something in the docker image, there is much more you’ll have to understand and I highly recommend that you do not move forward until you are more comfortable with the docker architecture, etc.
It would be good to setup a test system with HA, that you plan on destroying and it cannot cause you any problems, then try these techniques to learn. For example, once you make changes to the docker container, you would need to save that docker image. However, this opens another “can of worms” as they say.
I hope this helps.