Created
August 22, 2016 06:09
-
-
Save dhcmrlchtdj/4234c1818ad54c24d0445b2b3afa8be1 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
| # forward f port remote-port remote-host | |
| # forward c port remote-port remote-host | |
| forward() { | |
| case "$1" in | |
| "f") ssh -v -O forward -R $3:localhost:$2 $4 ;; | |
| "c") ssh -v -O cancel -R $3:localhost:$2 $4 ;; | |
| esac | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment