Last active
December 12, 2015 09:19
-
-
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
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
# 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