Name
scp
Synopsis
scp [options
]file1 file2
scp [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
does not preserve resource forks or metadata
when copying files that contain them.
Options
-
-B
Run in batch mode; don’t prompt for passwords.
-
-c
cipher
Use the specified type of encryption, either blowfish, des, or 3des. (3des is the default.)
-
-C
Turn on compression.
-
-F
filename
Use specified ssh configuration file.
-
-i
keyfile
Specify an identity file to use for authentication. The default is
$HOME/.ssh/identity
.-
-o
keyword
Set configuration keyword.
-
-p
Preserve modification times and modes of the source files.
-
-P
port
Select TCP port number.
-
-r
If any of the source files are directories,
scp
copies each subtree rooted at that name. The destination must be a directory.-
-S
pathname
Use the local ssh executable located at pathname.
-
-q
Run in quiet mode.
-
-v
Be verbose.
-
-4
Use only IPv4 addresses.
-
-6
Use only IPv6 addresses.
Get Mac OS X in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.