This commit is contained in:
Pin
2022-12-20 22:25:54 -05:00
parent 9a0c74b701
commit 97580ab120
2 changed files with 23 additions and 0 deletions

21
README.md Normal file
View File

@@ -0,0 +1,21 @@
# Docker SSH Authorized Keys Challenge
This is a simple challenge utilizing docker-compose to setup a ssh client/control environment where the controller is trying to connect into the client to dump a file.
## Setup
Running `docker-compose up -d --build` will setup a default environment.
Users will be setup on the client using the teamX format.
Initial user password can be obtained from the container logs of `client`.
All "scoring" public/private keys will be stored under a local `keys` directory.
## Goal
The goal is to give teams access to login to the `client` container and properly setup a provided public key.
Once the key is properly setup a file will appear in the appropriate teams home folder.
Since could take up to a minute to show up after completion.
For added complexity, the `SSHD_CHALLENGE_DIR` exists changing the default AuthorizedKeysFile within SSHD.
This adds a further challenge since teams will need to checkout the configuration in `/etc/ssh/sshd_config` for the correct structure.

View File

@@ -12,6 +12,8 @@ services:
controller:
image: local/c2games-controller:latest
ports:
- "22022:22"
build:
context: ./controller
environment: