SSH server docker container
Switch branches/tags
Nothing to show
Clone or download
Corbin Uselton
Corbin Uselton first commit
Latest commit 81edbfd Jul 8, 2015
Failed to load latest commit information.
bin first commit Jul 7, 2015
Dockerfile first commit Jul 7, 2015 first commit Jul 7, 2015
sshd_config first commit Jul 7, 2015

SSH Server

Docker container for running OpenSSH server. Can be used in combination with sshuttle for creating a secure network connection to a docker cluster


It simply needs to be run with port 22 open

docker run -d --name ssh-server -p 22 corbinu/ssh-server

It only takes key auth so you can either copy your public key

cat ~/.ssh/ | docker exec -i ssh-server /bin/bash -c "cat >> /root/.ssh/authorized_keys"

Or you can build a private image based on this one and add the key within your Dockerfile