m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-05-31 14:17:24 +0200
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-05-31 14:17:24 +0200
commitfc0267f14f4b4f87e857b688501ec0bfe258b2d7 (patch)
tree555207ac9c1e7885f8482665cb2872d5b00d8806
parent05dccfb509994792f7d3e0c1143f1dfea8a32d5a (diff)
Add ssh port tunneling
-rw-r--r--ssh.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssh.md b/ssh.md
index 1b5c9be..fd62496 100644
--- a/ssh.md
+++ b/ssh.md
@@ -15,3 +15,9 @@ Change password for key:
## Execute commands and start shell
ssh -t host 'commands; bash'
+
+## Port tunneling
+
+ ssh -N host -L <client port>:<address:port from server's POV>
+
+`-N` is to not start an SSH session.