Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 1.15 KB

README.md

File metadata and controls

59 lines (36 loc) · 1.15 KB

Systems Advanced: Linux Containers

SSH Lab

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.

Setup Instructions

Pre-requisites

Clone the Repository

Clone this repository to your local machine:

git clone https://github.com/PXL-Systems-Advanced/ssh-lab
cd ssh-lab

Build and Run the Containers

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.

Usage

SSH Between Containers

  1. Exec into ssh-server1:

    docker exec -it ssh-server1 bash
  2. Inside ssh-server1, SSH into ssh-server2:

    ssh student@ssh-server2

    Use the password pxl when prompted.

Cleanup

To stop and remove the containers, run:

docker compose down