Manage SSH Tunnel is a simple shell script to start and stop ssh tunnels from the terminal.
Note: the setup assumes bash as the default shell
Add to ~/.bash_profile or ~/.bashrc
alias tunnel_home='/bin/sh ~/bin/tunnel.sh example.net sam 22 8888'
Replace example.net with the hostname of the server, sam with the username on the server, and 8888 with the local tunnel port
Type source ~/.bash_profile or source ~/.bashrc
To open the tunnel
tunnel_home start
To close the tunnel
tunnel_home close
Licensing information is available on the about page, for additional questions or comments feel free to contact me.