Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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