summaryrefslogtreecommitdiff
path: root/sftp.0
diff options
context:
space:
mode:
Diffstat (limited to 'sftp.0')
-rw-r--r--sftp.031
1 files changed, 21 insertions, 10 deletions
diff --git a/sftp.0 b/sftp.0
index 7139aac43..e37043455 100644
--- a/sftp.0
+++ b/sftp.0
@@ -1,4 +1,4 @@
1SFTP(1) OpenBSD Reference Manual SFTP(1) 1SFTP(1) General Commands Manual SFTP(1)
2 2
3NAME 3NAME
4 sftp - secure file transfer program 4 sftp - secure file transfer program
@@ -44,9 +44,9 @@ DESCRIPTION
44 44
45 -6 Forces sftp to use IPv6 addresses only. 45 -6 Forces sftp to use IPv6 addresses only.
46 46
47 -a Attempt to continue interrupted downloads rather than overwriting 47 -a Attempt to continue interrupted transfers rather than overwriting
48 existing partial or complete copies of files. If the remote file 48 existing partial or complete copies of files. If the partial
49 contents differ from the partial local copy then the resultant 49 contents differ from those being transferred, then the resultant
50 file is likely to be corrupt. 50 file is likely to be corrupt.
51 51
52 -B buffer_size 52 -B buffer_size
@@ -60,10 +60,11 @@ DESCRIPTION
60 used in conjunction with non-interactive authentication. A 60 used in conjunction with non-interactive authentication. A
61 batchfile of `-' may be used to indicate standard input. sftp 61 batchfile of `-' may be used to indicate standard input. sftp
62 will abort if any of the following commands fail: get, put, 62 will abort if any of the following commands fail: get, put,
63 reget, rename, ln, rm, mkdir, chdir, ls, lchdir, chmod, chown, 63 reget, reput, rename, ln, rm, mkdir, chdir, ls, lchdir, chmod,
64 chgrp, lpwd, df, symlink, and lmkdir. Termination on error can 64 chown, chgrp, lpwd, df, symlink, and lmkdir. Termination on
65 be suppressed on a command by command basis by prefixing the 65 error can be suppressed on a command by command basis by
66 command with a `-' character (for example, -rm /tmp/blah*). 66 prefixing the command with a `-' character (for example, -rm
67 /tmp/blah*).
67 68
68 -C Enables compression (via ssh's -C flag). 69 -C Enables compression (via ssh's -C flag).
69 70
@@ -310,7 +311,7 @@ INTERACTIVE COMMANDS
310 progress 311 progress
311 Toggle display of progress meter. 312 Toggle display of progress meter.
312 313
313 put [-fPpr] local-path [remote-path] 314 put [-afPpr] local-path [remote-path]
314 Upload local-path and store it on the remote machine. If the 315 Upload local-path and store it on the remote machine. If the
315 remote path name is not specified, it is given the same name it 316 remote path name is not specified, it is given the same name it
316 has on the local machine. local-path may contain glob(3) 317 has on the local machine. local-path may contain glob(3)
@@ -318,6 +319,12 @@ INTERACTIVE COMMANDS
318 remote-path is specified, then remote-path must specify a 319 remote-path is specified, then remote-path must specify a
319 directory. 320 directory.
320 321
322 If the -a flag is specified, then attempt to resume partial
323 transfers of existing files. Note that resumption assumes that
324 any partial copy of the remote file matches the local copy. If
325 the local file contents differ from the remote local copy then
326 the resultant file is likely to be corrupt.
327
321 If the -f flag is specified, then a request will be sent to the 328 If the -f flag is specified, then a request will be sent to the
322 server to call fsync(2) after the file has been transferred. 329 server to call fsync(2) after the file has been transferred.
323 Note that this is only supported by servers that implement the 330 Note that this is only supported by servers that implement the
@@ -338,6 +345,10 @@ INTERACTIVE COMMANDS
338 Resume download of remote-path. Equivalent to get with the -a 345 Resume download of remote-path. Equivalent to get with the -a
339 flag set. 346 flag set.
340 347
348 reput [-Ppr] [local-path] remote-path
349 Resume upload of [local-path]. Equivalent to put with the -a
350 flag set.
351
341 rename oldpath newpath 352 rename oldpath newpath
342 Rename remote file from oldpath to newpath. 353 Rename remote file from oldpath to newpath.
343 354
@@ -367,4 +378,4 @@ SEE ALSO
367 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh- 378 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
368 filexfer-00.txt, January 2001, work in progress material. 379 filexfer-00.txt, January 2001, work in progress material.
369 380
370OpenBSD 5.5 October 20, 2013 OpenBSD 5.5 381OpenBSD 5.6 April 22, 2014 OpenBSD 5.6