short version: a working equivalent to
scp -3 http://user:[email protected]/somefile ftp://user:pass@ftpserver/my/path
detailed version:
+------+ +-------+ +-------------+ | HTTP +---------------> linux +-------------> FTP server | +------+ WWW +-------+ LAN +-------------+
- I have a HTTP ressource on the web. let's say http://example.org/somefile
- I have a linux host (RaspberryPi) connected to the below FTP server
- I have a FTP server (mediacenter box)
I want to transfer the HTTP file to the FTP server through the linux host. without storing the whole file on the linux host, just acting as buffer between endpoints
What is the easy way to do this ?
thanks
Mount the ftp directory:
Then you can easily download the selected files to this folder:
At finally umount ftp:
The easiest way is probably to build an SSH tunnel. Your machine connects to the linux machine via ssh, and this machine then forwards all traffic on that tunnel to a second host. On your localhost a port is opened, and you could simply connect an FTP client to that port, and it will be forwarded to the FTP server.