Files
ssh-box/README.md
2024-12-03 19:36:20 +02:00

572 B

Dockerized SSH box

First start:

  • copy example-env to .env

  • Edit the file:

    • modify your user ID number as USR
    • EXPOSE to port exposed outside
  • start with docker-compose, or by using make

  • data/ folder appears. It contains users definitions, and home folders

  • create user by adding authorized_keys contents to data/users/[UID]-[username] file

    • example: vim users/2000-user1 <- copy id_rsa.pub contents there
  • use UID >=2000

  • you can also use the user-add script

  • the ~/shared/ folder for each is user is also listed in /shared/[user] symlink