1
0
Files
cheatsheet-site/content/ssh/port-forwarding.md
yuudi 728a3db957
Some checks failed
Build / build (push) Has been cancelled
init
2025-08-12 18:37:54 -06:00

1.1 KiB
Raw Permalink Blame History

+++ date = '2025-08-10T11:55:59Z' title = 'Port Forwarding' +++

  • -L 本地转发(本地访问远程)
  • -R 远程转发远程访问本地如clash
ssh -R <remote_listen_port>:<local_host>:<local_port> <user>@<ssh_server>
ssh -L [<local_listen_host>]:<local_listen_port>:<remote_host>:<remote_port> <user>@<ssh_server>