scpHow to SCP from a remote to a local machine?
SCP (Secure Copy Protocol) is a secure way to transfer files between two computers. To SCP from a remote to a local machine, you need to use the scp command in the terminal.
Example
scp [email protected]:/path/to/file /local/destination
This command will copy the file located at /path/to/file on the remote host remotehost.edu to the local destination /local/destination using the username username.
Code explanation
scp: the command to initiate the secure copy[email protected]: the username and hostname of the remote machine/path/to/file: the path to the file on the remote machine/local/destination: the local destination to copy the file to
Helpful links
More of Scp
- Running SCP in quiet mode
- How to overwrite files using SCP?
- How to list files using SCP?
- How to enable logging when using SCP?
- How to run SCP in verbose mode?
- How to transfer files recursively using SCP?
- Is it possible to SCP files in parallel?
- How to transfer files using wildcards with SCP?
- How to show progress when using SCP?
- How to catch errors when using SCP?
See more codes...