Skip to content

Instantly share code, notes, and snippets.

@fanktom
Last active December 12, 2015 09:19
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 fanktom/4750648 to your computer and use it in GitHub Desktop.
Save fanktom/4750648 to your computer and use it in GitHub Desktop.
Add this to your .bash_profile to automatically add the SSH tunnel necessary for rmate on server connect
# RMate
ssh_mate(){
ssh -R 52698:localhost:52698 $1
}
alias sshmate=ssh_mate
# Usage
sshmate ubuntu@yourserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment