Use scp instead of wget to transfer files

Use scp instead of wget to transfer files

Sometimes, the host has restrictions and wget cannot obtain files. At this time, it is much more convenient to use scp to transfer files under ssh.

1. Download the file

scp [email protected]:/path/filename /home/local_dir

[email protected] is the SSH username and IP address of the server, such as [email protected]
/path/filename is the server file storage directory
/home/local_dir is the directory where local files need to be stored (the directory must have write permission)

2. Upload files

scp /path/filename [email protected]:/path

/path/filename local file
[email protected] is the SSH username and IP address of the server, such as [email protected]
/path Server storage directory

3. Download the entire directory

scp -r [email protected]:/var/www/remote_dir/ /home/local_dir

[email protected] is the SSH username and IP address of the server, such as [email protected]
/var/www/remote_dir/ server directory
/home/local_dir local directory

4. Upload the directory to the server

scp -r /home/local_dir [email protected]:/var/www/remote_dir/

/home/local_dir local directory
[email protected] is the SSH username and IP address of the server, such as [email protected]
/var/www/remote_dir/ server directory

Note : The password entered in SSH will not be displayed. Just press Enter after entering it.

<<:  FtpIt: $4.99/month/2GB RAM/50GB storage/1TB traffic/OpenVZ/Los Angeles

>>:  BudgetVM: $29/month/4GB memory/250GB space/5TB traffic/5 IP/KVM/Los Angeles CN

Recommend

Mirror sites where you can download Google Play APK on your computer

Google Play official website: https://play.google...

Virmach's explanation and opinion on the recent automatic deductions

Just want to say: Virmach is too inflated! ! ! If...

White Sands Hosting: $14.49/year/128MB RAM/25GB storage/1000GB bandwidth/OpenVZ

White Sands Hosting, an American hosting provider...

iPage $2.95 Cheap Hosting

iPage is a long-established hosting company in th...

Time4VPS: €9.99/year/512MB RAM/20GB storage/1 IP/500GB bandwidth/OpenVZ

Time4VPS is a Lithuanian hosting company that mai...

RAKsmart 512MB RAM San Jose KVM VPS Review

Details: RAKsmart: 9.9 yuan/month/512MB memory/20...