SCP command to transfer files between servers?

Chris Worner

Well-known member
Joined
Apr 15, 2016
Messages
388
Best answers
1
Ratings
37
Points
28
#1
I used to use wget to transfer file between two VPS servers but I heard of SCP command can do similar function, someone can tell me how to use SCP command to transfer files between servers?
 

BillEssley

Well-known member
Joined
Feb 19, 2013
Messages
312
Best answers
2
Ratings
27
Points
28
#2
Best answer
The SCP (secure copy) command allows users to transfer files between a remote machine running the SSH server and their local machine.

For example, to copy a local file to a remote system, use the following syntax:

Code:
scp /path/to/local/file [email protected]:/path/to/destination/file
To copy a file from a remote SSH server to the local machine, use the following syntax:

Code:
scp -r [email protected]:/path/to/remote/file /path/to/destination/file

Hope it helps!
 
Newer Threads
Replies
0
Views
174
Replies
3
Views
218
Replies
6
Views
382
Replies
0
Views
107
Latest Threads
Replies
0
Views
13
Replies
4
Views
60
Replies
5
Views
71
Replies
2
Views
68
Recommended Threads
Replies
19
Views
2,248
Replies
0
Views
950
Replies
4
Views
693

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top