Download file directly to a remote machine

6,060

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:
6,060

Related videos on Youtube

Borivoje Petrovic
Author by

Borivoje Petrovic

Updated on September 18, 2022

Comments

  • Borivoje Petrovic
    Borivoje Petrovic almost 2 years

    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.

    • Jim Salter
      Jim Salter over 11 years
      This question does not make sense as-is. Where is the file that you want to download? How would you normally download that file?
    • Borivoje Petrovic
      Borivoje Petrovic over 11 years
      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
    Borivoje Petrovic over 11 years
    True, Sam, that is exactly the procedure. It would be great if that could be done ONLY from firefox!
  • Sam
    Sam over 11 years
    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
    Sam over 11 years
    there might be a plugin for firefox, tho i havent searched for one