download file from Internet to server using SSH

You may use the wget utility.

It has a really simple syntax, and all what do you need is to:

wget http://link.to.file and it will be stored in the same directory where do you run wget. If you'd like to store a downloaded file somewhere else, you may use -P option, e.g.

wget -P /path/to/store http://link.to.file


Of course, use scp. It behaves roughly like cp. Sample:

scp username@hostname:/remote/path/to/file local_path

You can recursively copy directories with -r

That's if you really need to download it via ssh. If they provide you just with an url (your question wasn't clear), then wget or curl will do the job, no need for ssh.


Use ssh to login to your server, then use for example wget to download the file

wget https://provided_link