
一句话承诺:三条命令搞定本地->远端与远端->本地的双向转发。

ssh -L 8080:localhost:3000 user@remote
# 访问本地 8080 相当于访问 remote 的 3000ssh -R 9000:localhost:6379 user@remote
# 在 remote 上访问 9000 即访问本地 6379ssh -D 1080 user@remote
# 本地启动 SOCKS5 代理,浏览器走 127.0.0.1:1080容器安全基础:非 root 运行与只读文件系统。