Name
scp
Synopsis
scp [options]file1 file2scp [options]file... directory
Securely copies files between two machines, using
ssh as the transport. Each
file or
directory is either a remote filename of
the form rname@rhost:path or a local
filename.
scp doesn’t preserve resource
forks or metadata when copying files that contain them.
Options
-
-B Run in batch mode; don’t prompt for passwords.
-
-ccipher Use the specified type of encryption, either
blowfish,des, or3des. (3desis the default.)-
-C Turn on compression.
-
-Ffilename Use specified
sshconfiguration file.-
-ikeyfile Specify an identity file to use for authentication. The default is
$HOME/.ssh/identity.-
-okeyword Set configuration keyword.
-
-p Preserve modification times and modes of the source files.
-
-Pport Select TCP port number.
-
-r If any of the source files are directories,
scpcopies each subtree rooted at that name. The destination must be a directory.-
-Spathname Use the local
sshexecutable located atpathname.-
-q Run in quiet mode.
-
-v Be verbose.
-
-4 Use only IPv4 addresses.
-
-6 Use only IPv6 addresses.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access