bmoorman/sshd

By bmoorman

Updated 6 days ago

OpenSSH [openssh.com] on Ubuntu

Image

100K+

Supported tags and respective Dockerfile links

How to use this image

Docker Run

docker run \
--detach \
--name sshd \
--restart unless-stopped \
--publish 2222:22 \
--volume sshd-config:/config \
bmoorman/sshd:latest

Docker Compose

version: "3.7"
services:
  sshd:
    image: bmoorman/sshd:latest
    container_name: sshd
    restart: unless-stopped
    ports:
      - "2222:22"
    volumes:
      - sshd-config:/config

volumes:
  sshd-config:

Environment Variables

VariableDescriptionDefault
TZSets the timezoneAmerica/Denver
SSHD_PORTSets the port sshd listens on22
SSHD_USERSSpace-separated list of users to create<empty>
SSHD_KEY_LOCBase location of accompanying keys for above users<empty>

Docker Pull Command

docker pull bmoorman/sshd