diff options
Diffstat (limited to 'sftp.1')
-rw-r--r-- | sftp.1 | 26 |
1 files changed, 16 insertions, 10 deletions
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: sftp.1,v 1.40 2003/01/10 08:19:07 fgsch Exp $ | 1 | .\" $OpenBSD: sftp.1,v 1.41 2003/03/28 10:11:43 jmc Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2001 Damien Miller. All rights reserved. | 3 | .\" Copyright (c) 2001 Damien Miller. All rights reserved. |
4 | .\" | 4 | .\" |
@@ -30,6 +30,7 @@ | |||
30 | .Nd Secure file transfer program | 30 | .Nd Secure file transfer program |
31 | .Sh SYNOPSIS | 31 | .Sh SYNOPSIS |
32 | .Nm sftp | 32 | .Nm sftp |
33 | .Bk -words | ||
33 | .Op Fl vC1 | 34 | .Op Fl vC1 |
34 | .Op Fl b Ar batchfile | 35 | .Op Fl b Ar batchfile |
35 | .Op Fl o Ar ssh_option | 36 | .Op Fl o Ar ssh_option |
@@ -40,10 +41,15 @@ | |||
40 | .Op Fl R Ar num_requests | 41 | .Op Fl R Ar num_requests |
41 | .Op Fl S Ar program | 42 | .Op Fl S Ar program |
42 | .Ar host | 43 | .Ar host |
44 | .Ek | ||
43 | .Nm sftp | 45 | .Nm sftp |
44 | .Op [\fIuser\fR@]\fIhost\fR[:\fIfile\fR [\fIfile\fR]] | 46 | .Oo Oo Ar user Ns No @ Oc Ns |
47 | .Ar host Ns Oo : Ns Ar file Oo | ||
48 | .Ar file Oc Oc Oc | ||
45 | .Nm sftp | 49 | .Nm sftp |
46 | .Op [\fIuser\fR@]\fIhost\fR[:\fIdir\fR[\fI/\fR]] | 50 | .Oo Oo Ar user Ns No @ Oc Ns |
51 | .Ar host Ns Oo : Ns Ar dir Ns | ||
52 | .Oo Ar / Oc Oc Oc | ||
47 | .Sh DESCRIPTION | 53 | .Sh DESCRIPTION |
48 | .Nm | 54 | .Nm |
49 | is an interactive file transfer program, similar to | 55 | is an interactive file transfer program, similar to |
@@ -77,13 +83,13 @@ non-interactive authentication. | |||
77 | will abort if any of the following | 83 | will abort if any of the following |
78 | commands fail: | 84 | commands fail: |
79 | .Ic get , put , rename , ln , | 85 | .Ic get , put , rename , ln , |
80 | .Ic rm , mkdir , chdir , ls , | 86 | .Ic rm , mkdir , chdir , ls , |
81 | .Ic lchdir , chmod , chown , chgrp , lpwd | 87 | .Ic lchdir , chmod , chown , chgrp , lpwd |
82 | and | 88 | and |
83 | .Ic lmkdir . | 89 | .Ic lmkdir . |
84 | Termination on error can be suppressed on a command by command basis by | 90 | Termination on error can be suppressed on a command by command basis by |
85 | prefixing the command with a | 91 | prefixing the command with a |
86 | .Ic '-' | 92 | .Ic '-' |
87 | character (For example, | 93 | character (For example, |
88 | .Ic -rm /tmp/blah* | 94 | .Ic -rm /tmp/blah* |
89 | ). | 95 | ). |
@@ -95,19 +101,19 @@ in the format used in | |||
95 | This is useful for specifying options | 101 | This is useful for specifying options |
96 | for which there is no separate | 102 | for which there is no separate |
97 | .Nm sftp | 103 | .Nm sftp |
98 | command-line flag. For example, to specify an alternate | 104 | command-line flag. For example, to specify an alternate |
99 | port use: | 105 | port use: |
100 | .Ic sftp -oPort=24 . | 106 | .Ic sftp -oPort=24 . |
101 | .It Fl s Ar subsystem | sftp_server | 107 | .It Fl s Ar subsystem | sftp_server |
102 | Specifies the SSH2 subsystem or the path for an sftp server | 108 | Specifies the SSH2 subsystem or the path for an sftp server |
103 | on the remote host. A path is useful for using sftp over | 109 | on the remote host. A path is useful for using sftp over |
104 | protocol version 1, or when the remote | 110 | protocol version 1, or when the remote |
105 | .Nm sshd | 111 | .Nm sshd |
106 | does not have an sftp subsystem configured. | 112 | does not have an sftp subsystem configured. |
107 | .It Fl v | 113 | .It Fl v |
108 | Raise logging level. This option is also passed to ssh. | 114 | Raise logging level. This option is also passed to ssh. |
109 | .It Fl B Ar buffer_size | 115 | .It Fl B Ar buffer_size |
110 | Specify the size of the buffer that | 116 | Specify the size of the buffer that |
111 | .Nm | 117 | .Nm |
112 | uses when transferring files. Larger buffers require fewer round trips at | 118 | uses when transferring files. Larger buffers require fewer round trips at |
113 | the cost of higher memory consumption. The default is 32768 bytes. | 119 | the cost of higher memory consumption. The default is 32768 bytes. |