O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 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.

-c cipher

Use the specified type of encryption, either blowfish, des, or 3des. (3des is the default.)

-C

Turn on compression.

-E

Preserves extended attributes, resource forks, and ACLs. Both ends of the connection must be running Mac OS X 10.4 or higher.

-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, in the same format as the SSH config file.

-p

Preserve modification times and modes of the source files.

-P port

Select port number to connect to. Note that this is a capital -P, not a lowercase -p as in ssh.

-q

Run in quiet mode, with no progress bar.

-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.

-v

Be verbose.

-1

Force use of SSH1.

-2

Force use of SSH2.

-4

Use only IPv4 addresses.

-6

Use only IPv6 addresses.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required