Secure copy over SSH protocol
scp -3 {flag-3} -4 {flag-4} -6 {flag-6} -c {flag-c} -D {flag-d} ๐ flag-3 ๐ flag-4 ๐ flag-6 ๐ flag-c ๐ flag-d scp -3 {flag-3} -4 {flag-4} -6 {flag-6} -c {flag-c} -D {flag-d} Sandbox: execFile · Timeout: 30s
network.transfer.scp network.transfer.download network.transfer.upload | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
flag-3 | string | No | - | Copies between two remote hosts are transferred through the lo- | -3 |
flag-4 | string | No | - | Forces scp to use IPv4 addresses only | -4 |
flag-6 | string | No | - | Forces scp to use IPv6 addresses only | -6 |
flag-c | string | No | - | Selects the cipher to use for encrypting the data transfer. This option is directly passed to ssh(1) | -c |
flag-D | string | No | - | Connect directly to a local SFTP server program rather than a remote one via ssh(1). This option may be useful in debugging the client and server | -D |
flag-F | string | No | - | Specifies an alternative per-user configuration file for ssh. This option is directly passed to ssh(1) | -F |
flag-i | string | No | - | Selects the file from which the identity (private key) for pub- lic key authentication is read. This option is directly passed to ssh(1) | -i |
flag-J | string | No | - | Connect to the target host by first making an scp connection to the jump host described by destination and then establishing a TCP forwarding to the ultimate destination from there. Multiple jump h... | -J |
flag-l | string | No | - | Limits the used bandwidth, specified in Kbit/s | -l |
flag-o | string | No | - | Can be used to pass options to ssh in the format used in ssh_config(5). This is useful for specifying options for which there is no separate scp command-line flag. For full details of the options l... | -o |
flag-P | string | No | - | Specifies the port to connect to on the remote host. Note that this option is written with a capital `P', because -p is already reserved for preserving the times and mode bits of the file | -P |
flag-p | string | No | - | Preserves modification times, access times, and file mode bits | -p |
flag-q | string | No | - | Quiet mode: disables the progress meter as well as warning and | -q |
flag-r | string | No | - | Recursively copy entire directories. Note that scp follows sym- | -r |
flag-S | string | No | - | Name of program to use for the encrypted connection. The pro- gram must understand ssh(1) options | -S |
flag-v | string | No | - | Verbose mode. Causes scp and ssh(1) to print debugging messages | -v |
flag-X | string | No | - | Specify an option that controls aspects of SFTP protocol behav- iour. The valid options are: | -X |
B | boolean | No | - | Selects batch mode (prevents asking for passwords or | -B |
T | boolean | No | - | Disable strict filename checking. By default when copying files | -T |
Basic usage with flag-3
scp ${flag-3} Display help message
scp --help Securely copies files from remote ADDR's PATH to the current-working-directory. By default here, port 22 is used, or whichever port is otherwise configured.
scp ADDR:PATH ./ Using aliases (not Bash aliases) work with scp(1) as well. In this example, - the PATH1 of the first remote source defined as ALIAS1 is sent to PATH2 of the remote destination defined as ALIAS2.
scp ALIAS1:PATH1 ALIAS2:PATH2 You can use the `-P` flag -- uppercase, unlike ssh(1) -- to determine the PORT, in-case it's non-standard (not 22) or not defined within an alias.
scp -P PORT ADDR:PATH ./ scp is a command-line utility for secure copy over ssh protocol.
scp -3 {flag-3} -4 {flag-4} -6 {flag-6} -c {flag-c} -D {flag-d}