a docker with latest openssh, meant to be a jumphost
7.0K
eilandert/openssh is a minimal, security-hardened OpenSSH server image
built from the openssh package on deb.myguard.nl.
It gives you a self-contained sshd for jump-hosts, SFTP/SCP endpoints, git
transports, rsync targets and CI runners — without dragging a full OS image
along.
openssh-server
on a host that also runs everything else.docker-compose.ymlservices:
sshd:
image: eilandert/openssh:latest
restart: unless-stopped
read_only: true
cap_drop: [ALL]
cap_add:
- CHOWN # sshd needs these to drop privs to the session user
- SETUID
- SETGID
security_opt:
- no-new-privileges:true
tmpfs:
- /run
volumes:
- ./ssh-host-keys:/etc/ssh # persist host keys across restarts
- ./home:/home # user home dirs / authorized_keys
ports:
- "2222:22" # map high to avoid clashing with host sshd
Use key-based auth only (
PasswordAuthentication no), publish on a non-22 host port, and put it behind fail2ban / a firewall allowlist.
Content type
Image
Digest
sha256:164077908…
Size
48.9 MB
Last updated
about 4 hours ago
docker pull eilandert/openssh:debian