docker image:
- ubuntu 23.10 based
- sshd enabled
- entrypoint is set up to accept variables and write them into file
see: https://github.com/zeljko-zededa/zeljko_cnt_myssh/wiki/Home/
If started in local docker environment then the file that zedcloud would inject will not be present but Variables can still be passed to entrypoint and will then be written to file specified in entrypoint.sh
- starting container and passing variables
- connecting via ssh
$ docker run -d -e ENV1='MYENV1' -e ENV2='MYENV2' -e ENV3='MYENV3' --name myssh -p 50022:22 zeljkozededa/myssh:latest
$ ssh zededa@localhost -p 2222
- openssh-server
- python3
- python-apt-common
- sudo
user | password |
---|---|
root | root |
zededa | zededa |
root login via ssh is disabled and not possible. User(zededa) login via ssh is enabled.