OS Manuals

/usr/bin/scp

OpenSSH client

From openssh-client 10.6_p2-r0 (os), captured 2026-11-10 by running scp --help (exit 1). permalink

/usr/bin/scp: unknown option -- -
usage: scp [-346ABCOpqRrTv] [-c cipher] [-D sftp_server_path] [-F ssh_config]
           [-i identity_file] [-J destination] [-l limit] [-o ssh_option]
           [-P port] [-S program] [-X sftp_option] source ... target
Options (23)
OptionDescriptionSource
-3Copies between two remote hosts are transferred through the local host.man
-4Forces scp to use IPv4 addresses only.man
-6Forces scp to use IPv6 addresses only.man
-AAllows forwarding of ssh-agent(1) to the remote system.man
-BSelects batch mode (prevents asking for passwords or passphrases).man
-CCompression enable.man
-c cipherSelects the cipher to use for encrypting the data transfer.man
-D sftp_server_pathConnect directly to a local SFTP server program rather than a remote one via ssh(1).man
-F ssh_configSpecifies an alternative per-user configuration file for ssh.man
-i identity_fileSelects the file from which the identity (private key) for public key authentication is read.man
-J destinationConnect 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.man
-l limitLimits the used bandwidth, specified in Kbit/s.man
-OUse the legacy SCP protocol for file transfers instead of the SFTP protocol.man
-o ssh_optionCan be used to pass options to ssh in the format used in ssh_config(5).man
-P portSpecifies the port to connect to on the remote host.man
-pPreserves modification times, access times, and file mode bits from the source file.man
-qQuiet mode: disables the progress meter as well as warning and diagnostic messages from ssh(1).man
-RCopies between two remote hosts are transferred through the local host by default.man
-rRecursively copy entire directories.man
-S programName of program to use for the encrypted connection.man
-TDisable strict filename checking.man
-vVerbose mode.man
-X sftp_optionSpecify an option that controls aspects of SFTP protocol behaviour.man
Exit status (1) from the manual page
0success

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.