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

【Black Friday】servaRICA: Canadian VPS Discount

A) SSD VPS DEALS 1- Lion SSD Offer (limited) 4 CP...

Unreal Servers: $25/month/L5420/16GB memory/1TB hard disk/20TB traffic/Kansas

Unreal Servers, an American hosting company, was ...

How to add multiple IPs to OVH VPS (Centos system)

The feature of OVH VPS is that each VPS can add 1...

LetBox: $15/year/1CPU/512MB/20GB/unlimited traffic/1 IP/OpenVZ

LetBox is an American hosting company. I have int...

Vservercenter - Cloud Hosting Provider

1. Introduction to Vservercenter Vservercenter pr...

Boxdetail: $20/month/1GB memory/20GB SSD/1TB traffic/KVM/Singapore

Boxdetail, a Singapore hosting provider, official...

ZXhost 1GB RAM KVM VPS OVH France Simple Review

Details: ZXPlay: $25/year/1GB memory/120GB space/...

DGCHost: $4.5/month/512MB memory/20GB SSD space/1TB traffic/30Mbps/KVM/Hong Kong

DGCHost, a Singapore hosting company under Digico...

The data of Google Adsense has been abnormal in the past two days.

It turned out that I made a mistake. I had two ac...