SSH-dockerfile
SSH-dockerfile copied to clipboard
run ssh within your docker container
SSH-dockerfile
This Dockerfile creates an ssh service inside a docker container
- default user and password is test
i also wrote about why you'd want to do this here here
Building the image
docker build -t IMAGE_NAME .
Runing the image
docker run -p 22:22 IMAGE_NAME
Or simply pull the image
docker pull ghcr.io/s1ntaxe770r/image:latest