Download Files From a Link Straight to Your Service
Have a direct link to a large file, for example a Linux installation image or a file from your cloud storage? Let your App Hosting service download it with wget: the file goes straight onto your service, at the speed of the server, and your computer can be off meanwhile. The steps were tested on our demo service with wget 1.21.
Connect over SSH first: SSH how to get connected.
1. Download a File
Go to the folder where the file should go, then give wget the link in quotes:
cd ~/downloads wget -c "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-13.8.0-amd64-netinst.iso"
wget shows the size, the progress and the speed. -c lets you continue the download later if it stops. In our test, the Debian image (758 MB) came at about 200 MB/s.
- Your own file name:
-O name.isoafterwget. - Another folder:
-P ~/downloads/isos. - A link that needs a login:
--user=name --ask-password; wget then asks for the password.
2. Continue an Interrupted Download
Run the same command again, with -c, in the same folder:
wget -c "https://…/file.iso"
wget asks the server for the rest of the file only. In our test we stopped the download after 232 MB; the second run said 206 Partial Content and 537M remaining, and the finished file had the correct checksum. This works when the server supports it; otherwise wget starts again from the beginning.
3. Keep It Running When You Close SSH
A download stops when your SSH window closes. For long downloads, start it inside tmux:
tmux cd ~/downloads wget -c "https://…/file.iso"
Press Ctrl+B, release both keys, then D: you leave tmux and the download continues. Connect again later and look with tmux attach. More in tmux: Keep a Command Running After You Close SSH.
Or let wget run in the background and write its progress to a file:
wget -b -c "https://…/file.iso" tail -f wget-log
Stop watching with Ctrl+C; the download continues.
4. Many Files at Once
Put the links in a text file, one per line, for example links.txt (nano links.txt), then:
wget -c -i links.txt
5. Check the File
Many download pages publish a checksum. Compare it with the one of your file:
sha256sum debian-13.8.0-amd64-netinst.iso
wget needs a direct link to the file. Pages where you must click a button, enter a captcha or wait first do not work this way; for links of file hosters, try pyLoad from the Apps tab instead.