This repository contains the configuration files to set up a lab environment for practicing SSH using Docker containers.
The lab consists of two containers running an SSH server, allowing for SSH communication between them.
Clone this repository to your local machine:
git clone https://github.com/PXL-Systems-Advanced/ssh-lab
cd ssh-lab
Use Docker Compose to build the images and start the containers:
docker compose up -d
This will build the Docker image from the Dockerfile and start two containers, ssh-server1
and ssh-server2
.
-
Exec into
ssh-server1
:docker exec -it ssh-server1 bash
-
Inside
ssh-server1
, SSH intossh-server2
:ssh student@ssh-server2
Use the password
pxl
when prompted.
To stop and remove the containers, run:
docker compose down