Skip to content

Instantly share code, notes, and snippets.

@wheeyls
Last active October 8, 2015 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wheeyls/3309869 to your computer and use it in GitHub Desktop.
Save wheeyls/3309869 to your computer and use it in GitHub Desktop.
SSH Config file to setup some simple tunnels between myself and a coworker

Usage:

First, setup the tunnels.

Mike runs: ssh mikes_tunnels

Mark runs: ssh marks_tunnels

Now make a connection

Mike runs: ssh mark

(or vice versa)

Host mark
HostName localhost
User mark
Port 8008
Host mike
HostName localhost
User mike
Port 1337
Host mikes_tunnels
HostName example.webserver.com
User example_login_user
RemoteForward 1337 localhost:22
RemoteForward 3030 localhost:3000
LocalForward 8008 localhost:8008
LocalForward 3030 localhost:3031
Host marks_tunnels
HostName example.webserver.com
User example_login_user
RemoteForward 8008 localhost:22
RemoteForward 3031 localhost:3000
LocalForward 1337 localhost:1337
LocalForward 3030 localhost:3030
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment