105k views
5 votes
How to scp folder from one server to another

User Shriike
by
6.8k points

1 Answer

4 votes

Final answer:

To SCP a folder from one server to another, you can use the scp command with appropriate options and details for the source and destination servers.

Step-by-step explanation:



To SCP (Secure Copy Protocol) a folder from one server to another, you can use the following command:



scp -r source_folder usernamedestination_ip:destination_directory



Replace source_folder with the path to the folder you want to copy, username with the username of the destination server, destination_ip with the IP address of the destination server, and destination_directory with the path to the directory on the destination server where you want to copy the folder.

User Alechko
by
7.2k points