Add port-forward function

This commit is contained in:
Andrew Tomaka 2013-05-28 22:25:28 -04:00
parent 53cb0fa002
commit afad98a9dd
2 changed files with 12 additions and 0 deletions

View file

@ -7,3 +7,7 @@ function g {
} }
compdef g=git compdef g=git
function port-forward {
ssh $1 -R $2":localhost:"$2 -g;
}

8
README
View file

@ -11,3 +11,11 @@ source .zshrc
:BundleInstall inside of vim :BundleInstall inside of vim
mux work mux work
Remote Server:
edit /etc/ssh/sshd_config
```
PermitTunnel yes
GatewayPorts yes
```