m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/ssh.md
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.md')
-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.