Shell 我的vps_ip是否可以设置为代理,以便wget使用?
有一个$url被gfw阻止。Shell 我的vps_ip是否可以设置为代理,以便wget使用?,shell,proxy,wget,Shell,Proxy,Wget,有一个$url被gfw阻止。 现在我想通过这种方式从$url下载内容 ssh root@vps_ip #to use my vps_ip to break the gfw. wget -c $url -O /home/material #to get the content on /home/material in my remote vps disk. scp root@vps_ip:/home/material /home #to get the /
现在我想通过这种方式从$url下载内容
ssh root@vps_ip #to use my vps_ip to break the gfw.
wget -c $url -O /home/material #to get the content on /home/material in my remote vps disk.
scp root@vps_ip:/home/material /home #to get the /home/material in my remote vps disk into my local disk .
我的vps_ip是否可以设置为代理,以便wget使用 如果您有,您可以在
http://example.com:8080
然后您可以告诉wget将其用于:
export HTTP_PROXY=http://example.com:8080
wget http://different.example.com
选项1,使用软件包中的
socksify
:
选项2,通过管道将下载通过
stdout
/stdin
:
ssh -C root@$vps_ip "wget -O- $url" >> /home/material
wget www.google.com-O/home/chrome.html--2015-09-02 10:29:06--解析www.google.com(www.google.com)。。。216.58.221.1322404:6800:4005:80b::2004连接到www.google.com(www.google.com)|216.58.221.132|:80…光标永远停在那里。我会打开vps上的8080端口吗?它是
ssh-N-D 1080 root@$vps_ip&
而不是`ssh-N-D 1080root@vps_ip&`SOCKS_SERVER=localhost:1080 socksify wget-c$url-O/home/material bash:socksify:command没有在选项1中找到一些bug。是的,您必须安装socksify
!您从未提及您拥有的系统,因此不可能是一个完整的解决方案socksify
是dante的一部分,e、 例如,您可以在OpenBSD上以pkg\u add dante
的形式安装它
ssh -C root@$vps_ip "wget -O- $url" >> /home/material