summaryrefslogtreecommitdiff
path: root/sftp.1
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2009-10-07 08:21:48 +1100
committerDarren Tucker <dtucker@zip.com.au>2009-10-07 08:21:48 +1100
commit46bbbe3326d69a84d94caca656c40a4521c10c45 (patch)
treee8a2c85684c84bb8e453bbcee78d977bdd5ec07f /sftp.1
parent350666d30069c163c0dc1fa2503740b9d970ecc8 (diff)
- djm@cvs.openbsd.org 2009/08/12 00:13:00
[sftp.c sftp.1] support most of scp(1)'s commandline arguments in sftp(1), as a first step towards making sftp(1) a drop-in replacement for scp(1). One conflicting option (-P) has not been changed, pending further discussion. Patch from carlosvsilvapt@gmail.com as part of his work in the Google Summer of Code
Diffstat (limited to 'sftp.1')
-rw-r--r--sftp.131
1 files changed, 28 insertions, 3 deletions
diff --git a/sftp.1 b/sftp.1
index 37ccb3a38..d7df8bbee 100644
--- a/sftp.1
+++ b/sftp.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: sftp.1,v 1.69 2008/12/09 15:35:00 sobrado Exp $ 1.\" $OpenBSD: sftp.1,v 1.70 2009/08/12 00:13:00 djm Exp $
2.\" 2.\"
3.\" Copyright (c) 2001 Damien Miller. All rights reserved. 3.\" Copyright (c) 2001 Damien Miller. All rights reserved.
4.\" 4.\"
@@ -22,7 +22,7 @@
22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24.\" 24.\"
25.Dd $Mdocdate: December 9 2008 $ 25.Dd $Mdocdate: August 12 2009 $
26.Dt SFTP 1 26.Dt SFTP 1
27.Os 27.Os
28.Sh NAME 28.Sh NAME
@@ -31,10 +31,12 @@
31.Sh SYNOPSIS 31.Sh SYNOPSIS
32.Nm sftp 32.Nm sftp
33.Bk -words 33.Bk -words
34.Op Fl 1Cv 34.Op Fl 1246Cqv
35.Op Fl B Ar buffer_size 35.Op Fl B Ar buffer_size
36.Op Fl b Ar batchfile 36.Op Fl b Ar batchfile
37.Op Fl c Ar cipher
37.Op Fl F Ar ssh_config 38.Op Fl F Ar ssh_config
39.Op Fl i Ar identity_path
38.Op Fl o Ar ssh_option 40.Op Fl o Ar ssh_option
39.Op Fl P Ar sftp_server_path 41.Op Fl P Ar sftp_server_path
40.Op Fl R Ar num_requests 42.Op Fl R Ar num_requests
@@ -87,6 +89,16 @@ The options are as follows:
87.Bl -tag -width Ds 89.Bl -tag -width Ds
88.It Fl 1 90.It Fl 1
89Specify the use of protocol version 1. 91Specify the use of protocol version 1.
92.It Fl 2
93Specify the use of protocol version 2.
94.It Fl 4
95Forces
96.Nm
97to use IPv4 addresses only.
98.It Fl 6
99Forces
100.Nm
101to use IPv6 addresses only.
90.It Fl B Ar buffer_size 102.It Fl B Ar buffer_size
91Specify the size of the buffer that 103Specify the size of the buffer that
92.Nm 104.Nm
@@ -120,6 +132,10 @@ prefixing the command with a
120.Sq \- 132.Sq \-
121character (for example, 133character (for example,
122.Ic -rm /tmp/blah* ) . 134.Ic -rm /tmp/blah* ) .
135.It Fl c Ar cipher
136Selects the cipher to use for encrypting the data transfers.
137This option is directly passed to
138.Xr ssh 1 .
123.It Fl C 139.It Fl C
124Enables compression (via ssh's 140Enables compression (via ssh's
125.Fl C 141.Fl C
@@ -130,6 +146,11 @@ per-user configuration file for
130.Xr ssh 1 . 146.Xr ssh 1 .
131This option is directly passed to 147This option is directly passed to
132.Xr ssh 1 . 148.Xr ssh 1 .
149.It Fl i Ar identity_file
150Selects the file from which the identity (private key) for public key
151authentication is read.
152This option is directly passed to
153.Xr ssh 1 .
133.It Fl o Ar ssh_option 154.It Fl o Ar ssh_option
134Can be used to pass options to 155Can be used to pass options to
135.Nm ssh 156.Nm ssh
@@ -199,6 +220,10 @@ Connect directly to a local sftp server
199(rather than via 220(rather than via
200.Xr ssh 1 ) . 221.Xr ssh 1 ) .
201This option may be useful in debugging the client and server. 222This option may be useful in debugging the client and server.
223.It Fl q
224Quiet mode: disables the progress meter as well as warning and
225diagnostic messages from
226.Xr ssh 1 .
202.It Fl R Ar num_requests 227.It Fl R Ar num_requests
203Specify how many requests may be outstanding at any one time. 228Specify how many requests may be outstanding at any one time.
204Increasing this may slightly improve file transfer speed 229Increasing this may slightly improve file transfer speed