SSH server (sshd) images pack with user root and password 123. Contains preinstalled python.
648
SSH server (sshd) docker images pack with user root and password 123.
Each container contains preinstalled python with tag version, e.g. baterflyrity/pythonssh:3.12 = python:3.12 + sshd.
See sources at https://github.com/baterflyrity/pythonssh.
Start container and connect to it via ssh (wait for several seconds to let server self-configure):
docker run -itd --rm -p 12345:22/tcp --name pythonssh baterflyrity/pythonssh
# wait for self-configuration
ssh root@localhost -p 12345 # password is 123
then via ssh interactive session in container
python3 -V
pip3 list
container will be deleted automatically (option --rm) on exit. One can force container to exit with:
docker stop pythonssh
Alternatively just start ssh server in container and run some commads:
docker run -itd --rm -p 12345:22/tcp --name pythonssh baterflyrity/pythonssh
# wait for self-configuration
ssh root@localhost -p 12345 python3 -V && pip3 list # password is 123
# delete server after done
docker stop pythonssh
Requirements:
git clone https://github.com/baterflyrity/pythonssh
cd pythonssh
python3.11 -m pip install -r requirements.txt
python3.11 builder.py make --password 123 --image baterflyrity/python-autostart:alpine --image baterflyrity/python-autostart:3.12-alpine --image baterflyrity/python-autostart:3.11-alpine --image baterflyrity/python-autostart:3.10-alpine --image baterflyrity/python-autostart:3.9-alpine --image baterflyrity/python-autostart:3.8-alpine
python3.11 builder.py build --user baterflyrity # insert your username
# optionally upload to dockerhub
python3.11 builder.py push
1.1.1
1.1.0
Content type
Image
Digest
sha256:3c81da32b…
Size
27.5 MB
Last updated
over 2 years ago
docker pull baterflyrity/pythonssh