Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bean5/docker_ssh
Simple tutorial on using Docker to map your ~/.ssh to a container. This uses an Alpine container for simplicity. This is not generally advisable, but I publish it in case it is helpful to someone.
https://github.com/bean5/docker_ssh
docker iac ssh tools tools-and-automation
Last synced: 7 days ago
JSON representation
Simple tutorial on using Docker to map your ~/.ssh to a container. This uses an Alpine container for simplicity. This is not generally advisable, but I publish it in case it is helpful to someone.
- Host: GitHub
- URL: https://github.com/bean5/docker_ssh
- Owner: bean5
- License: mit
- Created: 2021-01-21T16:59:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-27T18:32:48.000Z (7 months ago)
- Last Synced: 2024-05-01T22:13:38.566Z (7 months ago)
- Topics: docker, iac, ssh, tools, tools-and-automation
- Language: Dockerfile
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker_ssh
A docker wrapper that maps your `~/.ssh` folder to a an alpine-based SSH container. It mounts to a corresponding `~/.ssh/` to the container as read-only. Previously it that was copied, permissions were modified, but with docker-compose, now it can be mounted directly.
## Warning
Although this is mounted as read-only, it is not recommended that you mount your actual `.ssh` folder. You should be mounting one that makes sense for your project.
## Requirements
* docker
* docker-compose## Use
`docker compose up -d ssh`
Then use ssh as you normally would. Enjoy!
## License
See LICENSE file. I chose MIT because I didn't do much here except glue awesome code together. License selected using -- a very handy tool!