Answers:
因此,您已登录到一台计算机myclient并可以ssh访问另一台计算机myserver。您想通过HTTP从删除服务器下载文件www.example.com到,myclient但是数据需要保存在上myserver。应该这样做:
wget -O - http://www.example.com/whatever | ssh myserver 'cat >/path/to/remote/destination'
或者,您可以myserver使用sshfs通过SSH 挂载文件系统。对于一次性的需求而言,这可能太麻烦了,但是如果您经常执行此类操作,则很方便。
mkdir ~/myserver
sshfs myserver:/ ~/myserver
wget -O ~/myserver/path/to/remote/destination http://www.example.com/whatever
A,但是要通过SSH将文件复制到,B而无需实际将文件存储在上A。赢得!