Skip to content

PXL-Systems-Advanced/ssh-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published