Skip to content

Instantly share code, notes, and snippets.

@amscotti
Created April 17, 2013 01:15
Show Gist options
  • Select an option

  • Save amscotti/5401025 to your computer and use it in GitHub Desktop.

Select an option

Save amscotti/5401025 to your computer and use it in GitHub Desktop.
#!/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