Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leandroberetta/tun-py
Python script to create SSH tunnels from a config file
https://github.com/leandroberetta/tun-py
Last synced: 6 days ago
JSON representation
Python script to create SSH tunnels from a config file
- Host: GitHub
- URL: https://github.com/leandroberetta/tun-py
- Owner: leandroberetta
- Created: 2016-12-30T19:58:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-26T15:06:42.000Z (over 7 years ago)
- Last Synced: 2024-11-18T21:03:57.257Z (2 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tun-py
Python script to create SSH tunnels from a config file.
The tunnels configuration must be in file with the format as follows:
# Dev
5555:192.168.200.100:5555 [email protected]# Prod
5556:192.168.200.101:5556 [email protected]
5557:192.168.200.101:5557 [email protected]The command executed (eg. Dev) will be:
ssh -N -L 5555:192.168.200.100:5555 [email protected]
Finishing the script (with Ctrl+C) will terminate all tunnels.
To create the tunnels execute:
python tun.py tun.cfg