Home » Linux24 July 2018

SSH/SCP: Copy Files & Folders from Local to Remote & Remote to Local

This article shows how you can copy files and folders from your local machine to remote server. Also, how you can copy files and folders from the remote server to your local machine.

We will use SCP protocol for this purpose. SCP stands for Secure Copy Protocol. It’s a means of securely transferring computer files. Files can be transferred between local host and remote host, or between two remote hosts.

SCP is based on the Secure Shell (SSH) protocol.

Copy from Local to Remote

Copy a single file from Local computer to Remote Server

with a custom port number (xxxx)

Copy folder from Local Computer to Remote Server

-r = recursive copy (copy all the files and folders inside the specified folder)

with a custom port number (xxxx)

Copy from Remote to Local

Copy a single file from Remote Server to Local Computer

with a custom port number (xxxx)

Copy folder from Local Computer to Remote Server

-r = recursive copy (copy all the files and folders inside the specified folder)

with a custom port number (xxxx)

Hope this helps. Thanks.

Linux

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed

Comments are closed.