How to do it...

Linux has a collection of tools that can help in transferring data between networked computers. We will see how a few of them work in this section:

  1. Suppose we have a myfile.txt file on the local system that we want to copy to the remote system. The command to do so as follows:
      scp myfile.txt tajinder@sshserver.com:~Desktop/  

Here, the remote location where the file will be copied is the Desktop directory of the user account being used to connect.

  1. When we check on the remote SSH system, we can see that the myfile.txt file has been copied successfully:
  1. Now let's suppose we have a directory,  mydata in the local system, ...

Get Practical Linux Security Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.