Understanding and utilizing scp
SSH actually has several uses; it's not just for connecting one machine to another, though that is the most popular use case. SSH also allows you to transfer files to another machine, or even transfer files from a remote machine to your local one. The utility that allows you to do this is the scp (secure copy) command, which is part of the SSH suite of utilities. Of course, you can also transfer files via network shares, but the beauty of scp is that it offers an on-the-fly file transfer, with no share configuration being necessary. The scp command is simple and fast. You can transfer a file from your machine to anywhere on the filesystem of a target machine that you have permission to access.
The scp utility is ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access