Using this mod you can add an openssh server to your container to access the abc default account
To enable, in docker container arguments, set an environment variable DOCKER_MODS=ghcr.io/zjudgenie/docker-mods:universal-openssh and env vars SSH_USER_DIRECTORY and/or SSH_USER_PASSWORD
If adding multiple mods, enter them in an array separated by |, such as DOCKER_MODS=ghcr.io/zjudgenie/docker-mods:universal-openssh|linuxserver/mods:universal-stdout-logs.
This mod exposes the /etc/ssh folder as a volume that you can mount, you can find in it the sshd_config and the generated host keys(generated by ssh-keygen -A)
Example config
environment:
- DOCKER_MODS=ghcr.io/zjudgenie/docker-mods:universal-openssh
- SSH_USER_DIRECTORY=/path/to/user/directory
- SSH_USER_PASSWORD=randomsecurepwd # the password login is disabled by default, you can enable it fiddling in the sshd_config
ports:
- 12345:22 #hostport:containerport
volumes:
- ./data/ssh:/etc/ssh