
You will have to specify the path to the file as the source and also specify the remote host path, where the files are being copied to. When using the SCP commands you will need to specify a few things for this to happen. When copying files, being able to transfer files/data from local storage to remote server is very essential. Common SCP Commands Copy File From Local Host to Remote Server Let's get started by seeing the commands in action. With two thing's ready you are good to go. Root access to both client and server machines.SSh installed on both the client and the server machines.

Copy files between two different remote servers.Īt this point, it will be fair to state that before you use any SCP commands you will need to have a few things in place:.


It is a command line utility that allows the user to securely copy files and directories between two locations usually between unix or linux systems. SCP is an acronym for Secure Copy Protocol. As a system admin sharing of data will be among your day to day activity and you will need the data being shared to be safe, and by using SCP command you will be able to achieve this.īefore we get started, let's begin by understanding what SCP is, and then we'll learn some commands you can use for file transfer. In today's market gap, having Linux skills is very essential and helpful more so if you are a system administrator. It lets you share files and data securely and easily. But today we'll be focusing on the SCP command. When it comes to sharing data in operating systems like Linux, there are multiple commands you can choose from to share information. Now, when it comes to computers the case is not different we have softwares and even sites that facilitate the same. When it comes to devices like mobile phones we have app the facilitate the transfer of files like xender, appshare or even sometimes the use of bluetooth. Most of the time, the information being shared will be private or confidential – meaning it's meant for a specific person or a group of people, so protecting it is essential. Some of the most commonly shared files include audio files, images, videos, pdfs or any form of word documents.

Whenever you're working with computers or any electronic device that has storage capacity, you might need to distribute or share information and files in various ways.
