Add port-forward function
This commit is contained in:
parent
53cb0fa002
commit
afad98a9dd
2 changed files with 12 additions and 0 deletions
|
@ -7,3 +7,7 @@ function g {
|
||||||
}
|
}
|
||||||
compdef g=git
|
compdef g=git
|
||||||
|
|
||||||
|
function port-forward {
|
||||||
|
ssh $1 -R $2":localhost:"$2 -g;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
8
README
8
README
|
@ -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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue