Ubuntu server image with SSH preconfigured and root login enabled.
6.8K
A lightweight Ubuntu 24.04 LTS Server container with preinstalled base tools and OpenSSH Server β ready to use instantly after docker run.
No systemd or unnecessary services; only root access, minimal packages, and SSH access.
Based on official ubuntu
Includes common base tools:
openssh-server, curl, wget, vim, nano, iputils-ping, net-tools, iproute2, procps, lsb-release, tzdata, locales
SSH server auto-configured and ready on startup
Root login enabled
Root password configurable via environment variable
Works without systemd (using foreground sshd)
Lightweight and Docker-friendly
docker run -d \
--name ubuntu-ssh \
-p 2222:22 \
-e ROOT_PASSWORD="MySecret123" \
docker.io/pouya6672/ubuntu-ssh
Default root password (if not specified): changeME1234
Then connect via SSH:
ssh root@<HOST_IP> -p 2222
# Password: MySecret123
version: "3.9"
services:
ubuntu-ssh:
image: pouya6672/ubuntu-ssh
ports:
- "2222:22"
environment:
ROOT_PASSWORD: "changeME1234"
volumes:
- ssh_host_keys:/etc/ssh
- ssh_root_home:/root/.ssh
restart: unless-stopped
volumes:
ssh_host_keys:
ssh_root_home:
Run with:
docker compose up -d
| Variable | Description | Default |
|---|---|---|
ROOT_PASSWORD | Root password for SSH login | changeME1234 |
β οΈ Security Note: Itβs strongly recommended to change the default password immediately or use SSH keys instead of password login in production environments.
| Command | Purpose |
|---|---|
ping, ip, ifconfig | Network utilities |
vim, nano, less | Basic editors & pagers |
curl, wget | Download tools |
lsb_release, locale | System info |
systemd or systemctl included β pure process-based container./usr/sbin/sshd -D.Content type
Image
Digest
sha256:cd389616dβ¦
Size
48.3 MB
Last updated
12 months ago
docker pull pouya6672/ubuntu-ssh