Skip to content

Instantly share code, notes, and snippets.

@ed-flanagan
Created July 24, 2014 05:47
Show Gist options
  • Save ed-flanagan/aec2123e170cc713097a to your computer and use it in GitHub Desktop.
Save ed-flanagan/aec2123e170cc713097a to your computer and use it in GitHub Desktop.
SSH Port Tunneling for CouchDB
#!/usr/bin/env bash
REMOTE_USER='user'
REMOTE_HOST='example.com'
REMOTE_PORT=5984
LOCAL_HOST='localhost'
LOCAL_PORT=9000
ssh -N -L "$LOCAL_PORT:$LOCAL_HOST:$REMOTE_PORT" "$REMOTE_USER@$REMOTE_HOST"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment