SCP From Web Server To Home PC


Download a Single File From Web Server To Linux PC

The scp command in Linux is a fine way to download a file from a Linux Web Server. You can download a file if you know where it resides and you know the password for which to login. All you need to do is to login to the shell terminal with your pc. This example shows how it can be done with an Ubuntu PC.

The code below shows how you can download a tar file from the root directory on a Linux server to the desktop on a home PC running Ubuntu.

 root# scp username@example.com:/myfile.tar /home/username/Desktop