Created
April 17, 2013 01:15
-
-
Save amscotti/5401025 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| # declare variables | |
| SERVER="<SERVER IP/NAME>" | |
| USER="<YOU USER NAME>" | |
| INNER_IP="<IP OF THE SYSTEM YOU WANT TO CONNECT TO>" | |
| PORT="<PORT YOU WANT TO USE>" | |
| #print variable on a screen | |
| echo Connecting to $SERVER and opening $PORT to $INNER_IP | |
| ssh $USER@$SERVER -CNL $PORT:$INNER_IP:$PORT` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment