more helps
This commit is contained in:
14
README.md
14
README.md
@@ -1,13 +1,15 @@
|
|||||||
|
# Dockerized SSH box
|
||||||
|
|
||||||
|
|
||||||
|
First start:
|
||||||
|
|
||||||
first start:
|
- copy example-env to .env
|
||||||
|
- Edit the file:
|
||||||
copy example-env to .env
|
- modify your user ID number as USR
|
||||||
modify your user ID as USR
|
- EXPOSE to port exposed outside
|
||||||
EXPOSE to port exposed outside
|
|
||||||
|
|
||||||
|
- start with docker-compose
|
||||||
- data/ and home/ folders appear
|
- 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
|
- example: `vim users/2000-user1` <- copy id_rsa.pub contents there
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
USR=1000
|
USR=1000
|
||||||
EXPOSE=3478
|
EXPOSE=22222
|
||||||
NAME=BOX NAME
|
NAME=BOX NAME
|
||||||
|
|||||||
Reference in New Issue
Block a user