SSHD Docker Image
Minimal Alpine Linux Docker container
sshd exposed and
Based on macropin/docker-sshd
by Andrew Cutler.
The images are built and hosted automatically on Docker Hub
$ docker pull ourtownrentals/sshd
Mount your .ssh credentials (RSA public keys) at
in order to access the container via root ssh.
Optionally mount a custom sshd config at
docker run -d -p 2222:22 \ -v /secrets/id_rsa.pub:/root/.ssh/authorized_keys:ro \ -v /mnt/data/:/data/ ourtownrentals/sshd
Development and Testing
The sshd source is hosted on GitHub.
Clone the project with
$ git clone https://github.com/ourtownrentals/docker-sshd.git
Build and run the container with
$ docker build -t sshd . $ docker run sshd
Please submit and comment on bug reports and feature requests.
To submit a patch:
- Fork it (https://github.com/ourtownrentals/docker-sshd/fork).
- Create your feature branch (
git checkout -b my-new-feature).
- Make changes.
- Commit your changes (
git commit -am 'Add some feature').
- Push to the branch (
git push origin my-new-feature).
- Create a new Pull Request.
This app is licensed under the MIT license.
This software is provided "as is" and without any express or
implied warranties, including, without limitation, the implied
warranties of merchantibility and fitness for a particular