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

sftp

Synopsis

sftp [options] [hostname]
sftp [user@]hostname:[pathname]

Secure FTP. Transfer files to and from remote network site hostname using ssh as the transport. Once an sftp connection is made, sftp becomes interactive, prompting the user for a command. Type help to see a list of known commands,

If pathname is a directory, it will become the initial remote working directory once the connection is made. If pathname is a file, sftp will transfer that file into the local working directory, close the connection, and exit without entering interactive mode.

Options

-b filename

Run in batch mode, reading commands from filename instead of standard input.

-B buffersize

Use a buffer size of buffersize bytes when transferring files instead of the default 32768 bytes.

-C

Turn on compression.

-F filename

Use specified ssh configuration file.

-o keyword

Set configuration keyword.

-P sftp-server_path

Connect to the local sftp-server program at sftp-server_path, instead of using ssh (for debugging purposes). The default location for the program on Mac OS X is /usr/libexec/sftp-server.

-R n

Allow up to n outstanding requests, instead of the default, 16.

-s subsystem

Invoke remote subsystem.

-S pathname

Use local ssh executable located at pathname.

-v

Be verbose.

-1

Attempt a Version 1 connection.

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