Home Linux Sshtunnel
Post
Cancel

Linux Sshtunnel

参考: https://www.ssh.com/academy/ssh/tunneling/example

In OpenSSH, local port forwarding is configured using the -L option:

ssh -L 80:intra.example.com:80 gw.example.com

This example opens a connection to the gw.example.com jump server, and forwards any connection to port 80 on the local machine to port 80 on intra.example.com.

This post is licensed under CC BY 4.0 by the author.