Skip to primary content

未完待续

To Be Continued

Main menu

  • Home
  • About

Post navigation

← Previous Next →

SSH Port Forwarding

Posted on 2021/08/13 by 枯藤昏鸦

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-

This entry was posted in 就是不分类 by 枯藤昏鸦. Bookmark the permalink.
Proudly powered by WordPress