Access via Web SSH inside a Docker Container

Bruno Delb
Open DevOps Academy
2 min readDec 18, 2020

--

Sometimes, a SSH access on a host may be blocked outside the corporate domain for security reasons. One solution to access it anyway is through a web browser. The Shell in a Box tool (https://github.com/shellinabox/shellinabox) makes this possible.

On the host, create a container:

sudo docker container run --rm \
--name shellinabox \
-p 4200:4200 \
-e SIAB_USER=myusername \
-e SIAB_PASSWORD=mypassword \
-e SIAB_SUDO=true \
-v $PWD/dev:/usr/src/dev \
sspreitzer/shellinabox:latest

--

--

Blockchains, DevOps, Agile Coaching, development, testing, Cloud, Management 3.0, ITIL. It defines me.