Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

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

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.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata