Download web file onto a server from client

Alec Jacobson

March 19, 2013

weblog/

If I want to download a file from a URL I can use wget. Then I can use scp to copy to my webserver. Or I could ssh to the server and call wget from there. Here's a one-liner to do just that:
ssh SERVER 'wget URL -O LOCAL_SERVER_OUTPUT_FILE'