Back

linux - SSH tunnel

发布时间: 2022-01-31 00:22:00

参考: 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.

Back