Copying files remotely
Managing a system remotely is great using SSH. However, many would not know that SSH can also help in uploading and downloading files remotely.
Getting ready
To try the file transfer tools, we only need two Linux systems which can ping each other. On one system, the OpenSSH package should be installed and the SSH server should be running.
How to do it...
Linux has a collection of tools which can help to transfer data between networked computers. We will see how a few of them work in this section:
- Suppose we have a file,
myfile.txt
, on the local system, which we want to copy to the remote system. The command to do so is given here:scp myfile.txt tajinder@sshserver.com:~Desktop/
- The output is shown in the following screenshot: ...
Get Practical Linux Security Cookbook 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.