SCP command to transfer files between servers?

Chris Worner

Well-known member
Registered
Joined
Apr 15, 2016
Messages
612
Points
28
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
Registered
Joined
Feb 19, 2013
Messages
358
Points
28
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 user@host:/path/to/destination/file
To copy a file from a remote SSH server to the local machine, use the following syntax:

Code:
scp -r user@host:/path/to/remote/file /path/to/destination/file

Hope it helps!
 
Newer Threads
Replies
0
Views
1,833
Replies
10
Views
6,475
Replies
10
Views
8,069
Replies
0
Views
1,681
Latest Threads
Replies
1
Views
50
Replies
0
Views
188
Replies
4
Views
2,292
Recommended Threads
Replies
9
Views
3,287
Replies
10
Views
13,505
Replies
5
Views
3,175
Replies
18
Views
11,987

Latest postsNew threads

Sponsors

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