假定114.114.114.114是我的vps,我安装了apache服务器,并配置好了正向代理。
端口:80
curl -x "114.114.114.114:80" ftp://debian.cites.illinois.edu/pub/debian-cd/ls-lR.gz -o /tmp/ftp.gz
这个命令可以通过114.114.114.114的80端口,从ftp://debian.cites.illinois.edu/pub/debian-cd/ls-lR.gz,下载资源。
现在我想在本机和114.114.114.114的80端口之间,架设一个ssh隧道,使得curl命令以加密方式传递,
请问,如何做到?
同问,公司上网要代理了,太麻烦。