In this post, we introduce how to transfer folder from local to remote and from remote to local using SCP command, which relies on SSH. Besides, we also recommend you an easier way to transfer folder between PCs.
I used to transfer files between PCs in SSH using the SCP command, but I think it is so complicated that only a single file can be transferred each time. So I wonder how do I move a folder to another directory in SSH? ”
- Question from a user
As a network communication protocol, SSH (Secure Shell) enables two computers to communicate and share data. In this tutorial, we will give you a thorough guide on SSH copy folder from local to remote Windows using the SCP command, which is based on the SSH protocol and enables you to securely transfer files from PC to PC.
SCP offers a wide range of options that regulate every facet of its activity. The following are the most common ones. Be familiar with them before knowing how to transfer folder from local to remote SSH.
Here in this post, we’ll introduce how to transfer folder from local to remote SSH with SCP command. As a supplement, we’ll also introduce how to transfer folder from remote to local SSH. Let’s get started.
Before operations, here are some tips you need to know.
Step 1. Run the following command to copy the folder from local to a remote system.
scp -r /path/of/your/local/folder username@hostname:/path/to/remote/server/folder
Step 2. Enter the user password to start the process.
Step 1. Run the following command:
scp -r username@hostname:/path/of/remote/server/folder /path/to/local/destination/folder
Step 2. Enter the user password to start the process.
Now you can go to the local destination to check your target folder.
Now you may grasp how to transfer folder from local to remote SSH. You could believe that using SSH to copy a folder from a remote location to a local one takes a lot of time, or that configuring PuTTY to utilize the SCP command is difficult. In this situation, we advise using AnyViewer to easily transfer folders across computers without the need for technical knowledge.
AnyViewer is a free third-party file transfer tool, which is highly appreciated for the following advantages:
Step 1. On the client PC, go to Log in on the left panel and then click Sign up (log in directly if you have already signed up).
Step 2. Fill in the sign-up information.
Step 3. Log in to the same account on other computers, and you can see the assigned devices.
Step 4. Go to the Device interface to select the target device you want to transfer files to, and then click File Transfer.
Step 5. A File Transfer dialog box for transferring files between the PCs is now available. The right of the box presents the client PC, and the host PC is on the left. Select the target folder and click the right arrow to transfer it to the client PC, and vice versa.
You can see the transfer status at the bottom of the box. Right-click to pause or remove the tasks.
You may now understand how to transfer folder from local to remote SSH. This technique calls for some IT expertise and it may be difficult for you. You can try AnyViewer in this situation to transfer folders securely between PCs.