From afad98a9dd544d9883f5c31e61b08b9f1b396c1b Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 28 May 2013 22:25:28 -0400 Subject: [PATCH] Add port-forward function --- .functions | 4 ++++ README | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/.functions b/.functions index 5c812c8..5d465ce 100644 --- a/.functions +++ b/.functions @@ -7,3 +7,7 @@ function g { } compdef g=git +function port-forward { + ssh $1 -R $2":localhost:"$2 -g; +} + diff --git a/README b/README index 1807ed6..9a4e4cc 100644 --- a/README +++ b/README @@ -11,3 +11,11 @@ source .zshrc :BundleInstall inside of vim mux work + +Remote Server: +edit /etc/ssh/sshd_config +``` +PermitTunnel yes +GatewayPorts yes +``` +