scp
scp copies files between hosts on a network. It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh. Unlike rcp, scp will ask for passwords or passphrases if they are needed for authentication.[1]
- Secure copy [EN] @ Wikipedia
Documentation
- man 1 'scp' [EN]
Further information
- scp Command Examples (23.01.2024) [EN] @ It's FOSS
Configuration
Files
-
/
-
etc/
-
ssh/
- ssh_config, Example: 1
-
ssh/
-
etc/
Syntax
scp [PARAMETER ...] [[USER@]HOST:]FILE/DIRECTORY [[USER@]HOST:]FILE/DIRECTORY
Parameters
- -C
- Compression enable. Passes the -C flag to ssh to enable compression.
- -p
- Preserves modification times, access times, and modes from the original file.
- -r
- Recursively copy entire directories.
- NOTE:scp follows symbolic links encountered in the tree traversal.
References
- ↑ man 1 'scp'