Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there any possibility to download a file to some remote machine which has ftp, ssh, nfs access. What I mean is that it doesn't have to go through the machine from which the download is issued.

share|improve this question
    
This question does not make sense as-is. Where is the file that you want to download? How would you normally download that file? –  Jim Salter Nov 24 '12 at 21:44
    
Sorry, I kinda found the answer, but I don't know how to automate it. THe file is on the web, e.g., I saw that one could ssh into remote machine and then wget it. Of course, automate it from the browser. –  Borivoje Petrovic Nov 24 '12 at 22:02

2 Answers 2

up vote 2 down vote accepted

if it has ssh, you can always ssh the remote machine, and execute the following command to download a file directly to that machine

wget <link_of_file_to_download>

for example, to download a tux picture whose link i know into a server of mine, i would do the following commands

ssh user@myserver
wget http://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Tux.svg/170px-Tux.svg.png
share|improve this answer
    
True, Sam, that is exactly the procedure. It would be great if that could be done ONLY from firefox! –  Borivoje Petrovic Nov 24 '12 at 22:07
    
there might be a plugin for firefox, tho i havent searched for one –  Sam Nov 24 '12 at 23:48

In order to do what you're asking - download a file in a browser on machine A, but save it to a disk on machine B - you will need a network connection between machines A and B (which means a VPN, if they're not on the same local network) and then you'll need to mount a disk from machine B on machine A.

This last bit can be done with nfs, samba, sshfs, or any number of other ways. We need more info before we can specify something more directly.

share|improve this answer
    
by doing that, even if the file is not saved on computer A, the file still goes through computers A and B and if i understand correctly, the op wants to download it directly to computer B without passing through A –  Sam Nov 24 '12 at 23:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.