Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 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
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

You could always use secure copy,

Uploading local file to remote server via ssh;

scp /source/of/file username@remoteserver:/destination/file

Downloading from a remote server to a local directory

scp username@remoteserver:/destination/file /source/of/file 

Download from a remote server and upload to another remote server

scp username@remoteserver:/destination/file username2@remoteserver2:/destinatio/file2

Remembering you can also pass options if you would like to recursively upload/download a directory!

Hope this helped.

share|improve this answer

Your Answer


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.