https://github.com/datashaman/mtunnel
Creates multiple background SSH tunnels for services within a project and stage.
https://github.com/datashaman/mtunnel
Last synced: 9 months ago
JSON representation
Creates multiple background SSH tunnels for services within a project and stage.
- Host: GitHub
- URL: https://github.com/datashaman/mtunnel
- Owner: datashaman
- License: mit
- Created: 2023-04-21T12:18:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-21T14:47:12.000Z (about 3 years ago)
- Last Synced: 2025-07-02T20:27:35.686Z (11 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# mtunnel
Creates multiple background SSH tunnels to services in your project.
## installation
Install the package from `PyPI`:
```
pip3 install mtunnel
```
## usage
For example:
With this config in `mtunnel.yml`:
```
jumpbox:
ssh_address: bastion.example.com
dont_sudo: true
region: us-east-1
profile: default
tunnels:
staging:
mysql:
bind_port: 3306
host_address: staging-rds-0.us-east-1.rds.amazonaws.com
host_port: 3306
es:
bind_port: 9200
host_address: vpc-staging-abcdefghijkl.us-east-1.es.amazonaws.com
host_port: 443
```
when you run this command:
```
mtunnel project1 staging
```
the following SSH tunnels will be setup via `bastion.example.com`:
```
es: localhost:9200 -> vpc-staging-rds-abcdefghijkl.us-east-1.es.amazonaws.com:443
mysql: localhost:3306 -> staging-rds-0.us-east-1.rds.amazonaws.com:3306
```