Created
July 24, 2014 05:47
-
-
Save ed-flanagan/aec2123e170cc713097a to your computer and use it in GitHub Desktop.
SSH Port Tunneling for CouchDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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