The following command can be used to create a SSH Tunneling which forwards any connection to port 1234 on the local machine to port 4321 on localhost via example.com
ssh -N -L 1234:localhost:4321 -p 22 -i ~/.ssh/id_rsa username@example.com
For more information about the flags, please refer https://explainshell.com/explain?cmd=ssh+-L+-N++-f
-EOF-
Related posts:
Copyright © 2005~2011 | Permalink | 0 Comments | Close To U
订阅 Twitter Linode VPS )
The post SSH Port Forwarding first appeared on 未完待续.