This is a simple Ubuntu-based container to serve as a sshd server for a given user/UID on a given (mounted) folder.
- build the image using
docker build -t <image name> .
- run a container using, e.g.,
docker run --rm --name <container name> -v <mount point>:/file -p <port>:22 -e USER=<username> -e PASS=<password> -e UID=<UID> -e GID=<GID> <image name>
- access sshd using
ssh -p <port> <usename>@<hostname>
Rodrigo Ventura Institute for Systems and Robotics Instituto Superior Tecnico University of Lisbon rodrigo.ventura AT isr DOT tecnico DOT ulisboa DOT pt