https://github.com/s1ntaxe770r/ssh-dockerfile
run ssh within your docker container
https://github.com/s1ntaxe770r/ssh-dockerfile
docker ssh
Last synced: about 1 year ago
JSON representation
run ssh within your docker container
- Host: GitHub
- URL: https://github.com/s1ntaxe770r/ssh-dockerfile
- Owner: s1ntaxe770r
- Created: 2020-05-26T05:03:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-18T06:35:53.000Z (over 4 years ago)
- Last Synced: 2025-03-29T08:51:08.766Z (over 1 year ago)
- Topics: docker, ssh
- Language: Dockerfile
- Homepage:
- Size: 10.7 KB
- Stars: 32
- Watchers: 1
- Forks: 32
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://dev.to/s1ntaxe770r/how-to-setup-ssh-within-a-docker-container-i5i)
## 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`