SSH 隧道(反向代理)
MacBook 网络条件更好,VPS 网络较差,使用 SSH 隧道可以将 MacBook 的网络流量通过 VPS 转发,从而实现更好的网络连接。
ssh -R 7897:localhost:7897 user@vps_ip
export http_proxy="socks5://127.0.0.1:7897"
export https_proxy="socks5://127.0.0.1:7897"
curl https://google.com
Last updated on