#Abt "Advanced SSH & Web Terminal". Once I disconnect from the session, takes some time to restore

1 messages · Page 1 of 1 (latest)

pliant linden
#
  • I have HA Yellow (Alpine os...)
  • So, I have those addon.
  • And, I have already set up the public key authentication and so on. It works.
  • Specifically, when I ssh root@<HA_PRIVATE_IP> (from my laptop), and then "do something there" and then , say, I "exit" from the session, from the client side, using exit command or "CTRL + D" on my Mac.
  • Now, right after that, I want to connect one more time, quickly, and, that's what failing - I mean I would need to wait for some time, until I can connect again.
  • Please correct me if I am wrong, it is because those Addon runs in a Docker container, rather than on the alpine Host itself.

My question is : is it possible to "make it faster to spin up the new container" or maybe I can just install the SSH directly on the Alpine to make it "instant" and "not breaking" the sessions?

#

Also I don't seem able to have multiple SSH sessions established, for some reason...

#

I can see that the Alpine Host does have the SSHD on the Host itself, but I guess I can't just start it like so:

~ # type sshd
sshd is hashed (/usr/sbin/sshd)
~ # sshd
sshd re-exec requires execution with an absolute path
~ # whoami
root
CONTAINER ID   IMAGE                                                       COMMAND               CREATED              STATUS                    PORTS                                   NAMES
fcef7baa80fd   ghcr.io/hassio-addons/ssh/aarch64:19.0.0                    "/init"               About a minute ago   Up About a minute                                                 addon_a0d7b954_ssh
gritty grotto
#

The host does not use alpine or OpenSSH but BuildRoot and Dropbear.

#

Containers/addons use alpine. If you connect to port 22 or use the web terminal you are in an addon.

#

Now to your actual issue I don't really have an explanation.

pliant linden
pliant linden
gritty grotto
#

That docker command only works with disabled protection mode.

timid widget
#

The container shouldn’t restart when you exit. It should stay running. Do you see it restarting in the addon logs?

pliant linden