https://github.com/psmb/docker-gen-ssh-config
Generates ssh config file with aliases to ssh docker containers
https://github.com/psmb/docker-gen-ssh-config
Last synced: 2 days ago
JSON representation
Generates ssh config file with aliases to ssh docker containers
- Host: GitHub
- URL: https://github.com/psmb/docker-gen-ssh-config
- Owner: psmb
- Created: 2015-06-22T17:33:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-22T18:00:52.000Z (almost 11 years ago)
- Last Synced: 2025-02-22T23:25:57.058Z (over 1 year ago)
- Language: Shell
- Size: 2.1 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Generates `.ssh/config` file with aliases to running ssh docker containers ([explained](http://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/)).
Works great with https://github.com/million12/docker-php-app-ssh
See [docker-gen](https://github.com/jwilder/docker-gen) to understand the magic.
## Usage
1. `docker run -d -v /var/run/docker.sock:/var/run/docker.sock -v ~/.ssh/config:/app/config dimaip/docker-gen-ssh-config`
2. Connect to your ssh containers as `ssh container-group-name` where `container-group-name` is the name of ssh container before the first `_`.