All Projects → trashpanda001 → docker-alpine-sshd

trashpanda001 / docker-alpine-sshd

Licence: other
A lightweight OpenSSH Docker Image built atop Alpine Linux.

Programming Languages

Dockerfile
14818 projects
shell
77523 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to docker-alpine-sshd

alpine-vagrant
This builds an up-to-date Vagrant Alpine Linux Base Box
Stars: ✭ 22 (-79.63%)
Mutual labels:  alpine, alpine-linux
Socat
Run socat command in alpine container
Stars: ✭ 53 (-50.93%)
Mutual labels:  alpine, alpine-linux
Dockerfiles
Discontinued. Fork at your will.
Stars: ✭ 384 (+255.56%)
Mutual labels:  alpine, alpine-linux
docker-nagios
Docker image for Nagios Core in Alpine Linux with basic plugins, available for x86, x64 , ARM v6, ARM v7 and ARM64.
Stars: ✭ 33 (-69.44%)
Mutual labels:  alpine, alpine-linux
Termuxalpine
Use TermuxAlpine.sh calling to install Alpine Linux in Termux on Android. This setup script will attempt to set Alpine Linux up in your Termux environment.
Stars: ✭ 224 (+107.41%)
Mutual labels:  alpine, alpine-linux
docker-aws-s3-sync
Docker container to sync a folder to Amazon S3
Stars: ✭ 21 (-80.56%)
Mutual labels:  alpine, alpine-linux
Geodesic
🚀 Geodesic is a DevOps Linux Distro. We use it as a cloud automation shell. It's the fastest way to get up and running with a rock solid Open Source toolchain. ★ this repo! https://slack.cloudposse.com/
Stars: ✭ 629 (+482.41%)
Mutual labels:  alpine, k8s
docker-geoserver
A basic docker geoserver image with JAI and marlin renderer running on tomcat
Stars: ✭ 17 (-84.26%)
Mutual labels:  alpine, alpine-linux
Pieman
Script for creating custom OS images for single-board computers
Stars: ✭ 149 (+37.96%)
Mutual labels:  alpine, alpine-linux
Docker Oidc Proxy
Docker Image built on Alpine Linux for secure OpenID Connect (OIDC) proxy authentication
Stars: ✭ 91 (-15.74%)
Mutual labels:  alpine, alpine-linux
alpine-buildpack-deps
An attempt at a "buildpack-deps"-like Docker image with Alpine Linux
Stars: ✭ 30 (-72.22%)
Mutual labels:  alpine, alpine-linux
alpine-qbittorrent-openvpn
qBittorrent docker container with OpenVPN client running as unprivileged user on alpine linux
Stars: ✭ 230 (+112.96%)
Mutual labels:  alpine, alpine-linux
alpinist
Automatic Alpine Linux Package (apk) Repository Generation using AWS Lambda, S3 & SSM Parameter Store
Stars: ✭ 45 (-58.33%)
Mutual labels:  alpine, alpine-linux
rails5-docker-alpine
Lightweight Docker development environment for Rails using Alpine Linux
Stars: ✭ 71 (-34.26%)
Mutual labels:  alpine, alpine-linux
alpine-php-wordpress
Wordpress running on Alpine Linux [Docker]
Stars: ✭ 30 (-72.22%)
Mutual labels:  alpine, alpine-linux
Bastion
🔒Secure Bastion implemented as Docker Container running Alpine Linux with Google Authenticator & DUO MFA support
Stars: ✭ 531 (+391.67%)
Mutual labels:  alpine, openssh
docker flutter
Alpine Linux image for Flutter & Dart with helpful utils and web build support.
Stars: ✭ 33 (-69.44%)
Mutual labels:  alpine, alpine-linux
dcos-k8s-rust-skaffold-demo
A demo of pipelining Rust application development to Kubernetes on DC/OS with Skaffold.
Stars: ✭ 40 (-62.96%)
Mutual labels:  alpine, k8s
Docker Ruby Node
🐳 Alpine Docker Image with latest versions of Ruby, Node.js and yarn installed. This Docker Image is actively maintained and updated regularly.
Stars: ✭ 74 (-31.48%)
Mutual labels:  alpine, alpine-linux
http-server
A Java HTTP server in 35MB Docker image
Stars: ✭ 17 (-84.26%)
Mutual labels:  alpine, alpine-linux

Alpine Linux SSHD

A lightweight OpenSSH Docker image built atop Alpine Linux. Available on GitHub.

The root password is "root". SSH host keys (RSA, DSA, ECDSA, and ED25519) are auto-generated when the container is started, unless already present.

OpenSSL Version Tags

  • 7.9-r1, 7.9, latest (OpenSSH_7.9, OpenSSL 1.1.1b, Dockerfile)
  • 7.5-r2 (OpenSSH_7.5p1-hpn14v4, LibreSSL 2.6.3, Dockerfile)
  • 7.5 (OpenSSH_7.5p1-hpn14v4, LibreSSL 2.5.4, Dockerfile)
  • 7.4 (OpenSSH_7.4p1, LibreSSL 2.4.4, Dockerfile)
  • 7.2 (OpenSSH_7.2p2-hpn14v4, OpenSSL 1.0.2j 26 Sep 2016, Dockerfile)
  • 7.1 (Alpine Linux 3.3, OpenSSH_7.1p2-hpn14v4, OpenSSL 1.0.2e 3 Dec 2015, Dockerfile)
  • 6.8 (Alpine Linux 3.2, OpenSSH_6.8p1-hpn14v4, OpenSSL 1.0.2d 9 Jul 2015, Dockerfile)
  • 6.7 (Alpine Linux 3.1, OpenSSH_6.7p1-hpn14v4, OpenSSL 1.0.1p 9 Jul 2015, Dockerfile)
  • 6.4 (Alpine Linux 2.7, OpenSSH_6.4p1-hpn14v1, OpenSSL 1.0.1p 9 Jul 2015, Dockerfile)
  • 6.2 (Alpine Linux 2.6, OpenSSH_6.2p2, OpenSSL 1.0.1m 19 Mar 2015, Dockerfile)

Basic Usage

$ docker run --rm --publish=2222:22 sickp/alpine-sshd:7.9-r1 # /entrypoint.sh
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
Server listening on 0.0.0.0 port 22.
Server listening on :: port 22.

$ ssh root@localhost -p 2222  # or $(docker-machine ip default)
# The root password is "root".

$ docker ps | grep 2222
cf8097ea881d        sickp/alpine-sshd:7.9-r1   "/entrypoint.sh"    8 seconds ago       Up 4 seconds        0.0.0.0:2222->22/tcp   stoic_ptolemy
$ docker stop cf80

Any arguments are passed to sshd. For example, to enable debug output:

$ docker run --rm --publish=2222:22 sickp/alpine-sshd:7.9-r1 -o LogLevel=DEBUG
...

Version Info

$ docker run --rm sickp/alpine-sshd:7.9-r1 -v
...
OpenSSH_7.9p1, OpenSSL 1.1.1b  26 Feb 2019
...

$ docker run --rm --entrypoint=cat sickp/alpine-sshd:7.9-r1 /etc/alpine-release
3.9.4

Customize

This image doesn't attempt to be "the one" solution that suits everyone's needs. It's actually pretty useless in the real world. But it is easy to extend via your own Dockerfile. See the examples directory.

Change root password

Change the root password to something more fun, like "password" or "sunshine":

FROM sickp/alpine-sshd:latest
RUN echo "root:sunshine" | chpasswd

Use authorized keys

Disable the root password completely, and use your SSH key instead:

FROM sickp/alpine-sshd:latest
RUN passwd -d root
COPY identity.pub /root/.ssh/authorized_keys

Create multiple users

Disable root and create individual user accounts:

FROM sickp/alpine-sshd:latest
ADD https://github.com/sickp.keys /home/sickp/.ssh/authorized_keys
ADD https://github.com/afrojas.keys /home/afrojas/.ssh/authorized_keys
RUN \
  passwd -d root && \
  adduser -D -s /bin/ash sickp && \
  passwd -u sickp && \
  chown -R sickp:sickp /home/sickp && \
  adduser -D -s /bin/ash afrojas && \
  passwd -u afrojas && \
  chown -R afrojas:afrojas /home/afrojas

Embed SSH host keys

Embed SSH host keys directly in your private image (via ssh-keygen -A), so you can treat your containers like cattle.

FROM sickp/alpine-sshd:latest
ADD https://github.com/sickp.keys /home/sickp/.ssh/authorized_keys
RUN \
  passwd -d root && \
  adduser -D -s /bin/ash sickp && \
  passwd -u sickp && \
  chown -R sickp:sickp /home/sickp && \
  ssh-keygen -A

History

2019-05-18 Updated to OpenSSH_7.9p1, OpenSSL 1.1.1b (Alpine Linux 3.9.4).
2018-02-22 Updated to OpenSSH_7.5.p1-hpn14v4, LibreSSL 2.6.3 (Alpine Linux 3.7.0).
2017-05-31 Updated to OpenSSH_7.5p1, LibreSSL 2.5.4 (Alpine Linux 3.6.0).
2017-02-01 Updated to OpenSSH_7.4p1, LibreSSL 2.4.4 (Alpine Linux 3.5.0).
2016-11-16 Updated to Alpine Linux 3.4.4, OpenSSL 1.0.2j.
2016-09-29 Updated to Alpine Linux 3.4.3, OpenSSL 1.0.2i.
2016-06-16 Updated to Alpine Linux 3.4.0 (with `search` support for Kubernetes >=1.2.0).
2016-03-30 Updated to 7.2p2, OpenSSL 1.0.2g.
2016-02-09 Added support for ALPINE_NO_RESOLVER in Kubernetes version.
2016-01-28 Added Kubernetes version, Alpine Linux 3.3.1.
2015-12-25 Updated 7.1 to Alpine Linux 3.3.
2015-11-16 Initial version.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].