My favorites | Sign in
Logo
             
Search
for
Updated Apr 11, 2009 by si...@sewell.ch
Labels: Deprecated
ManageSSHTunnel  
Manage SSH tunnels from the terminal

Manage SSH Tunnel

Manage SSH Tunnel is a simple shell script to start and stop ssh tunnels from the terminal.

Setup

Note: the setup assumes bash as the default shell

  1. Download tunnel.sh and save it to ~/bin/
  2. Add to ~/.bash_profile or ~/.bashrc
  3. alias tunnel_home='/bin/sh ~/bin/tunnel.sh example.net sam 22 8888'
  4. Replace example.net with the hostname of the server, sam with the username on the server, and 8888 with the local tunnel port
  5. Type source ~/.bash_profile or source ~/.bashrc

Usage

  1. To open the tunnel
  2. tunnel_home start
  3. To close the tunnel
  4. tunnel_home close

Sign in to add a comment
Hosted by Google Code