From 9917db1e85024342eeebfdc74ee68a8c477974dc Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Mon, 20 Dec 2021 19:12:06 +0200 Subject: [PATCH] more helps --- README.md | 14 ++++++++------ example-env | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a6a9383..c717d09 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,15 @@ +# Dockerized SSH box +First start: -first start: - -copy example-env to .env -modify your user ID as USR -EXPOSE to port exposed outside +- copy example-env to .env +- Edit the file: + - modify your user ID number as USR + - EXPOSE to port exposed outside +- start with docker-compose - data/ and home/ folders appear -- create user by adding authorized_keys contents to users/[UID]-[username] file +- create user by adding authorized_keys contents to data/users/[UID]-[username] file - example: `vim users/2000-user1` <- copy id_rsa.pub contents there diff --git a/example-env b/example-env index 7edab0c..df58c56 100644 --- a/example-env +++ b/example-env @@ -1,3 +1,3 @@ USR=1000 -EXPOSE=3478 +EXPOSE=22222 NAME=BOX NAME