summaryrefslogtreecommitdiff
path: root/sftp.1
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-05-23 18:44:04 +1000
committerDamien Miller <djm@mindrot.org>2003-05-23 18:44:04 +1000
commit5067792a7267cd1affe339bf7e9469ecc444eb25 (patch)
tree1fc3fc7306c7973739b26400213267fdf2b31575 /sftp.1
parentd419bdae777eee388e9f5a6f0e12fdd76981bac0 (diff)
- (djm) OpenBSD CVS Sync
- jmc@cvs.openbsd.org 2003/05/20 12:03:35 [sftp.1] - new sentence, new line - added .Xr's - typos ok djm@
Diffstat (limited to 'sftp.1')
-rw-r--r--sftp.177
1 files changed, 44 insertions, 33 deletions
diff --git a/sftp.1 b/sftp.1
index 252e43ab2..547a0fd41 100644
--- a/sftp.1
+++ b/sftp.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: sftp.1,v 1.43 2003/05/14 08:25:39 jmc Exp $ 1.\" $OpenBSD: sftp.1,v 1.44 2003/05/20 12:03:35 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 2001 Damien Miller. All rights reserved. 3.\" Copyright (c) 2001 Damien Miller. All rights reserved.
4.\" 4.\"
@@ -27,7 +27,7 @@
27.Os 27.Os
28.Sh NAME 28.Sh NAME
29.Nm sftp 29.Nm sftp
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.Bk -words
@@ -73,15 +73,15 @@ successful interactive authentication.
73.Pp 73.Pp
74The third usage format allows the sftp client to start in a remote directory. 74The third usage format allows the sftp client to start in a remote directory.
75.Pp 75.Pp
76The final usage form allows for automated sessions using the 76The final usage format allows for automated sessions using the
77.Fl b 77.Fl b
78option. In such cases, it is usually necessary to configure public key 78option.
79authentication to obviate the need to enter a password at connection 79In such cases, it is usually necessary to configure public key authentication
80time (see 80to obviate the need to enter a password at connection time (see
81.Xr sshd 8 81.Xr sshd 8
82and 82and
83.Xr ssh-keygen 1 83.Xr ssh-keygen 1
84for details.) 84for details).
85The options are as follows: 85The options are as follows:
86.Bl -tag -width Ds 86.Bl -tag -width Ds
87.It Fl b Ar batchfile 87.It Fl b Ar batchfile
@@ -101,10 +101,9 @@ and
101.Ic lmkdir . 101.Ic lmkdir .
102Termination on error can be suppressed on a command by command basis by 102Termination on error can be suppressed on a command by command basis by
103prefixing the command with a 103prefixing the command with a
104.Ic '-' 104.Sq Ic \-
105character (For example, 105character (for example,
106.Ic -rm /tmp/blah* 106.Ic -rm /tmp/blah* ) .
107).
108.It Fl o Ar ssh_option 107.It Fl o Ar ssh_option
109Can be used to pass options to 108Can be used to pass options to
110.Nm ssh 109.Nm ssh
@@ -113,22 +112,27 @@ in the format used in
113This is useful for specifying options 112This is useful for specifying options
114for which there is no separate 113for which there is no separate
115.Nm sftp 114.Nm sftp
116command-line flag. For example, to specify an alternate 115command-line flag.
117port use: 116For example, to specify an alternate port use:
118.Ic sftp -oPort=24 . 117.Ic sftp -oPort=24 .
119.It Fl s Ar subsystem | sftp_server 118.It Fl s Ar subsystem | sftp_server
120Specifies the SSH2 subsystem or the path for an sftp server 119Specifies the SSH2 subsystem or the path for an sftp server
121on the remote host. A path is useful for using sftp over 120on the remote host.
122protocol version 1, or when the remote 121A path is useful for using
123.Nm sshd 122.Nm
123over protocol version 1, or when the remote
124.Xr sshd 8
124does not have an sftp subsystem configured. 125does not have an sftp subsystem configured.
125.It Fl v 126.It Fl v
126Raise logging level. This option is also passed to ssh. 127Raise logging level.
128This option is also passed to ssh.
127.It Fl B Ar buffer_size 129.It Fl B Ar buffer_size
128Specify the size of the buffer that 130Specify the size of the buffer that
129.Nm 131.Nm
130uses when transferring files. Larger buffers require fewer round trips at 132uses when transferring files.
131the cost of higher memory consumption. The default is 32768 bytes. 133Larger buffers require fewer round trips at the cost of higher
134memory consumption.
135The default is 32768 bytes.
132.It Fl C 136.It Fl C
133Enables compression (via ssh's 137Enables compression (via ssh's
134.Fl C 138.Fl C
@@ -136,19 +140,19 @@ flag).
136.It Fl F Ar ssh_config 140.It Fl F Ar ssh_config
137Specifies an alternative 141Specifies an alternative
138per-user configuration file for 142per-user configuration file for
139.Nm ssh . 143.Xr ssh 1 .
140This option is directly passed to 144This option is directly passed to
141.Xr ssh 1 . 145.Xr ssh 1 .
142.It Fl P Ar sftp_server path 146.It Fl P Ar sftp_server path
143Connect directly to a local 147Connect directly to a local sftp server
144.Nm sftp-server
145(rather than via 148(rather than via
146.Nm ssh ) 149.Xr ssh 1 )
147This option may be useful in debugging the client and server. 150This option may be useful in debugging the client and server.
148.It Fl R Ar num_requests 151.It Fl R Ar num_requests
149Specify how many requests may be outstanding at any one time. Increasing 152Specify how many requests may be outstanding at any one time.
150this may slightly improve file transfer speed but will increase memory 153Increasing this may slightly improve file transfer speed
151usage. The default is 16 outstanding requests. 154but will increase memory usage.
155The default is 16 outstanding requests.
152.It Fl S Ar program 156.It Fl S Ar program
153Name of the 157Name of the
154.Ar program 158.Ar program
@@ -168,7 +172,8 @@ Commands are case insensitive and pathnames may be enclosed in quotes if they
168contain spaces. 172contain spaces.
169.Bl -tag -width Ds 173.Bl -tag -width Ds
170.It Ic bye 174.It Ic bye
171Quit sftp. 175Quit
176.Nm sftp .
172.It Ic cd Ar path 177.It Ic cd Ar path
173Change remote directory to 178Change remote directory to
174.Ar path . 179.Ar path .
@@ -195,7 +200,8 @@ to
195.Ar own 200.Ar own
196must be a numeric UID. 201must be a numeric UID.
197.It Ic exit 202.It Ic exit
198Quit sftp. 203Quit
204.Nm sftp .
199.It Xo Ic get 205.It Xo Ic get
200.Op Ar flags 206.Op Ar flags
201.Ar remote-path 207.Ar remote-path
@@ -206,7 +212,8 @@ Retrieve the
206and store it on the local machine. 212and store it on the local machine.
207If the local 213If the local
208path name is not specified, it is given the same name it has on the 214path name is not specified, it is given the same name it has on the
209remote machine. If the 215remote machine.
216If the
210.Fl P 217.Fl P
211flag is specified, then the file's full permission and access time are 218flag is specified, then the file's full permission and access time are
212copied too. 219copied too.
@@ -236,7 +243,8 @@ Display remote directory listing of either
236.Ar path 243.Ar path
237or current directory if 244or current directory if
238.Ar path 245.Ar path
239is not specified. If the 246is not specified.
247If the
240.Fl l 248.Fl l
241flag is specified, then display additional details including permissions 249flag is specified, then display additional details including permissions
242and ownership information. 250and ownership information.
@@ -255,15 +263,18 @@ Toggle display of progress meter.
255.Xc 263.Xc
256Upload 264Upload
257.Ar local-path 265.Ar local-path
258and store it on the remote machine. If the remote path name is not 266and store it on the remote machine.
259specified, it is given the same name it has on the local machine. If the 267If the remote path name is not specified, it is given the same name it has
268on the local machine.
269If the
260.Fl P 270.Fl P
261flag is specified, then the file's full permission and access time are 271flag is specified, then the file's full permission and access time are
262copied too. 272copied too.
263.It Ic pwd 273.It Ic pwd
264Display remote working directory. 274Display remote working directory.
265.It Ic quit 275.It Ic quit
266Quit sftp. 276Quit
277.Nm sftp .
267.It Ic rename Ar oldpath Ar newpath 278.It Ic rename Ar oldpath Ar newpath
268Rename remote file from 279Rename remote file from
269.Ar oldpath 280.Ar oldpath