Docker image to run SSHD on Older Linux OSes. This can be used to test SSH connections on an OS that does not support newer signature algorithms.
Each OS has Dockerfile/compose.yaml in its own subfolder.
To use:
- Edit
authorized_keys
and add any necessary public key entires - Navigate to the desired OS folder
- Build the image with your desired end user:
docker compose build --build-arg username=<user>
- Run
docker compose up
- Connect to the server at
ssh <user>@<host ip> -p 22222
<host ip>
is the IP of the host machine running docker<user>
is what was passed as the build argument- The port is always
22222
Versions:
- CentOS 7 is using OpenSSH 7.x
- Ubuntu 14 is using OpenSSH 6.x