Copying Files Between Local and Remote Machines Using SCP
Secure Copy Protocol (SCP) is a command-line tool that allows you to securely copy files and directories between your local machine and a remote server over SSH. Here’s how you can use SCP to copy files in both directions: from your local machine to a remote server and from a remote server to your local machine.
Copying from Local to Remote (Upload)
To copy a file from your local machine to a remote server, use the following command: