diff options
author | Darren Tucker <dtucker@zip.com.au> | 2009-10-07 08:21:48 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2009-10-07 08:21:48 +1100 |
commit | 46bbbe3326d69a84d94caca656c40a4521c10c45 (patch) | |
tree | e8a2c85684c84bb8e453bbcee78d977bdd5ec07f /sftp.1 | |
parent | 350666d30069c163c0dc1fa2503740b9d970ecc8 (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.1 | 31 |
1 files changed, 28 insertions, 3 deletions
@@ -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 |
89 | Specify the use of protocol version 1. | 91 | Specify the use of protocol version 1. |
92 | .It Fl 2 | ||
93 | Specify the use of protocol version 2. | ||
94 | .It Fl 4 | ||
95 | Forces | ||
96 | .Nm | ||
97 | to use IPv4 addresses only. | ||
98 | .It Fl 6 | ||
99 | Forces | ||
100 | .Nm | ||
101 | to use IPv6 addresses only. | ||
90 | .It Fl B Ar buffer_size | 102 | .It Fl B Ar buffer_size |
91 | Specify the size of the buffer that | 103 | Specify the size of the buffer that |
92 | .Nm | 104 | .Nm |
@@ -120,6 +132,10 @@ prefixing the command with a | |||
120 | .Sq \- | 132 | .Sq \- |
121 | character (for example, | 133 | character (for example, |
122 | .Ic -rm /tmp/blah* ) . | 134 | .Ic -rm /tmp/blah* ) . |
135 | .It Fl c Ar cipher | ||
136 | Selects the cipher to use for encrypting the data transfers. | ||
137 | This option is directly passed to | ||
138 | .Xr ssh 1 . | ||
123 | .It Fl C | 139 | .It Fl C |
124 | Enables compression (via ssh's | 140 | Enables 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 . |
131 | This option is directly passed to | 147 | This option is directly passed to |
132 | .Xr ssh 1 . | 148 | .Xr ssh 1 . |
149 | .It Fl i Ar identity_file | ||
150 | Selects the file from which the identity (private key) for public key | ||
151 | authentication is read. | ||
152 | This option is directly passed to | ||
153 | .Xr ssh 1 . | ||
133 | .It Fl o Ar ssh_option | 154 | .It Fl o Ar ssh_option |
134 | Can be used to pass options to | 155 | Can 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 ) . |
201 | This option may be useful in debugging the client and server. | 222 | This option may be useful in debugging the client and server. |
223 | .It Fl q | ||
224 | Quiet mode: disables the progress meter as well as warning and | ||
225 | diagnostic messages from | ||
226 | .Xr ssh 1 . | ||
202 | .It Fl R Ar num_requests | 227 | .It Fl R Ar num_requests |
203 | Specify how many requests may be outstanding at any one time. | 228 | Specify how many requests may be outstanding at any one time. |
204 | Increasing this may slightly improve file transfer speed | 229 | Increasing this may slightly improve file transfer speed |