The ssh server provided by the HomeAssistant extension only gives you minimal access. You only have the hs cli and access to the config directory.
In order to get full access to your server where the docker images are running you need the admin access as root on port 22222 with ssh. Here is how you can get this.