From 97580ab1204e54131370442d9a92c799da95076f Mon Sep 17 00:00:00 2001 From: Pin Date: Tue, 20 Dec 2022 22:25:54 -0500 Subject: [PATCH] docs --- README.md | 21 +++++++++++++++++++++ docker-compose.yml | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..d379e02 --- /dev/null +++ b/README.md @@ -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. + diff --git a/docker-compose.yml b/docker-compose.yml index 335bd22..2a82a10 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,8 @@ services: controller: image: local/c2games-controller:latest + ports: + - "22022:22" build: context: ./controller environment: