summaryrefslogtreecommitdiff
path: root/sftp.1
diff options
context:
space:
mode:
Diffstat (limited to 'sftp.1')
-rw-r--r--sftp.126
1 files changed, 16 insertions, 10 deletions
diff --git a/sftp.1 b/sftp.1
index ecd4d3174..02d2c274b 100644
--- a/sftp.1
+++ b/sftp.1
@@ -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
49is an interactive file transfer program, similar to 55is an interactive file transfer program, similar to
@@ -77,13 +83,13 @@ non-interactive authentication.
77will abort if any of the following 83will abort if any of the following
78commands fail: 84commands 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
82and 88and
83.Ic lmkdir . 89.Ic lmkdir .
84Termination on error can be suppressed on a command by command basis by 90Termination on error can be suppressed on a command by command basis by
85prefixing the command with a 91prefixing the command with a
86.Ic '-' 92.Ic '-'
87character (For example, 93character (For example,
88.Ic -rm /tmp/blah* 94.Ic -rm /tmp/blah*
89). 95).
@@ -95,19 +101,19 @@ in the format used in
95This is useful for specifying options 101This is useful for specifying options
96for which there is no separate 102for which there is no separate
97.Nm sftp 103.Nm sftp
98command-line flag. For example, to specify an alternate 104command-line flag. For example, to specify an alternate
99port use: 105port 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
102Specifies the SSH2 subsystem or the path for an sftp server 108Specifies the SSH2 subsystem or the path for an sftp server
103on the remote host. A path is useful for using sftp over 109on the remote host. A path is useful for using sftp over
104protocol version 1, or when the remote 110protocol version 1, or when the remote
105.Nm sshd 111.Nm sshd
106does not have an sftp subsystem configured. 112does not have an sftp subsystem configured.
107.It Fl v 113.It Fl v
108Raise logging level. This option is also passed to ssh. 114Raise logging level. This option is also passed to ssh.
109.It Fl B Ar buffer_size 115.It Fl B Ar buffer_size
110Specify the size of the buffer that 116Specify the size of the buffer that
111.Nm 117.Nm
112uses when transferring files. Larger buffers require fewer round trips at 118uses when transferring files. Larger buffers require fewer round trips at
113the cost of higher memory consumption. The default is 32768 bytes. 119the cost of higher memory consumption. The default is 32768 bytes.