From 627b14592280b2c94fa8ed435c67cf0980b71365 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Wed, 8 Jul 2015 18:09:52 -0500 Subject: [PATCH] Add SSH With Port Forwarding as a zsh til. --- README.md | 1 + zsh/ssh-with-port-forwarding.md | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 zsh/ssh-with-port-forwarding.md diff --git a/README.md b/README.md index 2548d79..3ec4eaa 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Repeat Yourself](zsh/repeat-yourself.md) - [Saying Yes](zsh/saying-yes.md) - [Search History](zsh/search-history.md) +- [SSH With Port Forwarding](zsh/ssh-with-port-forwarding.md) - [Switch Versions of a Brew Formula](zsh/switch-versions-of-a-brew-formula.md) - [Watch The Difference](zsh/watch-the-difference.md) - [Watch This Run Repeatedly](zsh/watch-this-run-repeatedly.md) diff --git a/zsh/ssh-with-port-forwarding.md b/zsh/ssh-with-port-forwarding.md new file mode 100644 index 0000000..bef4931 --- /dev/null +++ b/zsh/ssh-with-port-forwarding.md @@ -0,0 +1,7 @@ +# SSH With Port Forwarding + +Use the `-L` flag with `ssh` to forward a connection to a remote server + +``` +$ ssh someserver -L3000:localhost:3000 +```