Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ei-grad/docker-ssh-ambassador
https://github.com/ei-grad/docker-ssh-ambassador
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ei-grad/docker-ssh-ambassador
- Owner: ei-grad
- License: bsd-3-clause
- Created: 2015-09-17T17:03:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-21T16:55:07.000Z (over 9 years ago)
- Last Synced: 2024-11-14T06:07:15.339Z (about 2 months ago)
- Language: Shell
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
eigrad/ssh-ambassador docker image
==================================Lightweight ssh client container based on alpine linux image. Suitable to be
used as docker ambassador container for containers located on different hosts
connected over the insecure network.Example usage
-------------```bash
docker run -d \
--name mysql_ambassador \
-v /root/.ssh:/keys \
eigrad/ssh-ambassador [email protected] 3306 \
-p 3022 # if ssh uses the custom port on serverdocker run -d --link mysql_ambassador:mysql examplecom/wordpress
```Default ```ssh_config``` expects to find the ```id_rsa``` key and the
```known_hosts``` file in the ```/keys``` directory. Password authentication
and host key adding are disabled (ensure that the key of the host where you
would like to connect is already added to the known_hosts file).Of course, you can override it by ```-v your_own_ssh_config:/etc/ssh/ssh_config```.
It is also possible to pass an additional ssh parameters after the service port
number in the command:```bash
docker run -d \
--name mysql_ambassador \
-v /root/.ssh:/keys \
eigrad/ssh-ambassador example.com 12345 \
-o StrictHostKeyChecking=no \
-o UserKnownHostsFile=/dev/null
```Environment variables
---------------------* ```TARGET_HOST``` - host to connect on the remote side (default: localhost)
* ```EXPOSED_PORT``` - port to expose (bind) on the local side (default: equal
to the service port)License and contributing
------------------------This docker container source files could be used under the BSD license. See LICENSE file for details.
Issue reporting and ideas sharing are always [welcome](http://github.com/ei-grad/docker-ssh-ambassador/issues).