draft-ietf-secsh-filexfer-03.2.ps

来自「OTP是开放电信平台的简称」· PS 代码 · 共 2,108 行 · 第 1/5 页

PS
2,108
字号
/fdir () def/ftail () def/user_header_p false def%%EndPageSetup5 701 M(Secure Shell Working Group                                  J. Galbraith) s5 690 M(Internet-Draft                                          VanDyke Software) s5 679 M(Expires: April 16, 2003                                        T. Ylonen) s5 668 M(                                                             S. Lehtinen) s5 657 M(                                        SSH Communications Security Corp) s5 646 M(                                                        October 16, 2002) s5 613 M(                       SSH File Transfer Protocol) s5 602 M(                    draft-ietf-secsh-filexfer-03.txt) s5 580 M(Status of this Memo) s5 558 M(   This document is an Internet-Draft and is in full conformance with) s5 547 M(   all provisions of Section 10 of RFC2026.) s5 525 M(   Internet-Drafts are working documents of the Internet Engineering) s5 514 M(   Task Force \(IETF\), its areas, and its working groups.  Note that) s5 503 M(   other groups may also distribute working documents as Internet-) s5 492 M(   Drafts.) s5 470 M(   Internet-Drafts are draft documents valid for a maximum of six months) s5 459 M(   and may be updated, replaced, or obsoleted by other documents at any) s5 448 M(   time.  It is inappropriate to use Internet-Drafts as reference) s5 437 M(   material or to cite them other than as "work in progress.") s5 415 M(   The list of current Internet-Drafts can be accessed at http://) s5 404 M(   www.ietf.org/ietf/1id-abstracts.txt.) s5 382 M(   The list of Internet-Draft Shadow Directories can be accessed at) s5 371 M(   http://www.ietf.org/shadow.html.) s5 349 M(   This Internet-Draft will expire on April 16, 2003.) s5 327 M(Copyright Notice) s5 305 M(   Copyright \(C\) The Internet Society \(2002\).  All Rights Reserved.) s5 283 M(Abstract) s5 261 M(   The SSH File Transfer Protocol provides secure file transfer) s5 250 M(   functionality over any reliable data stream.  It is the standard file) s5 239 M(   transfer protocol for use with the SSH2 protocol.  This document) s5 228 M(   describes the file transfer protocol and its interface to the SSH2) s5 217 M(   protocol suite.) s5 129 M(Galbraith, et al.        Expires April 16, 2003                 [Page 1]) s_RSPStoPSsaved restoreuserdict/PStoPSsaved save putPStoPSmatrix setmatrix595.000000 421.271378 translate90 rotate0.706651 dup scaleuserdict/PStoPSmatrix matrix currentmatrix putuserdict/PStoPSclip{0 0 moveto 595.000000 0 rlineto 0 842.000000 rlineto -595.000000 0 rlineto closepath}put initclipPStoPSxform concat%%BeginPageSetup_S75 0 translate/pagenum 2 def/fname () def/fdir () def/ftail () def/user_header_p false def%%EndPageSetup5 723 M(Internet-Draft         SSH File Transfer Protocol           October 2002) s5 690 M(Table of Contents) s5 668 M(   1.     Introduction . . . . . . . . . . . . . . . . . . . . . . .   3) s5 657 M(   2.     Use with the SSH Connection Protocol . . . . . . . . . . .   4) s5 646 M(   3.     General Packet Format  . . . . . . . . . . . . . . . . . .   5) s5 635 M(   4.     Protocol Initialization  . . . . . . . . . . . . . . . . .   7) s5 624 M(   4.1    Client Initialization  . . . . . . . . . . . . . . . . . .   7) s5 613 M(   4.2    Server Initialization  . . . . . . . . . . . . . . . . . .   7) s5 602 M(   4.3    Determining Server Newline Convention  . . . . . . . . . .   8) s5 591 M(   5.     File Attributes  . . . . . . . . . . . . . . . . . . . . .   9) s5 580 M(   5.1    Flags  . . . . . . . . . . . . . . . . . . . . . . . . . .   9) s5 569 M(   5.2    Type . . . . . . . . . . . . . . . . . . . . . . . . . . .  10) s5 558 M(   5.3    Size . . . . . . . . . . . . . . . . . . . . . . . . . . .  10) s5 547 M(   5.4    Owner and Group  . . . . . . . . . . . . . . . . . . . . .  10) s5 536 M(   5.5    Permissions  . . . . . . . . . . . . . . . . . . . . . . .  11) s5 525 M(   5.6    Times  . . . . . . . . . . . . . . . . . . . . . . . . . .  11) s5 514 M(   5.7    ACL  . . . . . . . . . . . . . . . . . . . . . . . . . . .  11) s5 503 M(   5.8    Extended attributes  . . . . . . . . . . . . . . . . . . .  12) s5 492 M(   6.     Requests From the Client to the Server . . . . . . . . . .  13) s5 481 M(   6.1    Request Synchronization and Reordering . . . . . . . . . .  13) s5 470 M(   6.2    File Names . . . . . . . . . . . . . . . . . . . . . . . .  14) s5 459 M(   6.3    Opening, Creating, and Closing Files . . . . . . . . . . .  14) s5 448 M(   6.4    Reading and Writing  . . . . . . . . . . . . . . . . . . .  17) s5 437 M(   6.5    Removing and Renaming Files  . . . . . . . . . . . . . . .  18) s5 426 M(   6.6    Creating and Deleting Directories  . . . . . . . . . . . .  19) s5 415 M(   6.7    Scanning Directories . . . . . . . . . . . . . . . . . . .  19) s5 404 M(   6.8    Retrieving File Attributes . . . . . . . . . . . . . . . .  20) s5 393 M(   6.9    Setting File Attributes  . . . . . . . . . . . . . . . . .  21) s5 382 M(   6.10   Dealing with Symbolic links  . . . . . . . . . . . . . . .  22) s5 371 M(   6.11   Canonicalizing the Server-Side Path Name . . . . . . . . .  23) s5 360 M(   6.11.1 Best practice for dealing with paths . . . . . . . . . . .  23) s5 349 M(   7.     Responses from the Server to the Client  . . . . . . . . .  24) s5 338 M(   8.     Vendor-Specific Extensions . . . . . . . . . . . . . . . .  28) s5 327 M(   9.     Security Considerations  . . . . . . . . . . . . . . . . .  29) s5 316 M(   10.    Changes from previous protocol versions  . . . . . . . . .  30) s5 305 M(   10.1   Changes between versions 4 and 3 . . . . . . . . . . . . .  30) s5 294 M(   10.2   Changes between versions 3 and 2 . . . . . . . . . . . . .  31) s5 283 M(   10.3   Changes between versions 2 and 1 . . . . . . . . . . . . .  31) s5 272 M(   10.4   Changes between versions 1 and 0 . . . . . . . . . . . . .  31) s5 261 M(   11.    Trademark Issues . . . . . . . . . . . . . . . . . . . . .  32) s5 250 M(          References . . . . . . . . . . . . . . . . . . . . . . . .  33) s5 239 M(          Authors' Addresses . . . . . . . . . . . . . . . . . . . .  33) s5 228 M(          Full Copyright Statement . . . . . . . . . . . . . . . . .  35) s5 129 M(Galbraith, et al.        Expires April 16, 2003                 [Page 2]) s_RSPStoPSsaved restore%%Page: (2,3) 2userdict/PStoPSsaved save putPStoPSmatrix setmatrix595.000000 0.271378 translate90 rotate0.706651 dup scaleuserdict/PStoPSmatrix matrix currentmatrix putuserdict/PStoPSclip{0 0 moveto 595.000000 0 rlineto 0 842.000000 rlineto -595.000000 0 rlineto closepath}put initclip/showpage{}def/copypage{}def/erasepage{}defPStoPSxform concat%%BeginPageSetup_S75 0 translate/pagenum 3 def/fname () def/fdir () def/ftail () def/user_header_p false def%%EndPageSetup5 723 M(Internet-Draft         SSH File Transfer Protocol           October 2002) s5 690 M(1. Introduction) s5 668 M(   This protocol provides secure file transfer \(and more generally file) s5 657 M(   system access\) functionality over a reliable data stream, such as a) s5 646 M(   channel in the SSH2 protocol [5].) s5 624 M(   This protocol is designed so that it could be used to implement a) s5 613 M(   secure remote file system service, as well as a secure file transfer) s5 602 M(   service.) s5 580 M(   This protocol assumes that it runs over a secure channel, and that) s5 569 M(   the server has already authenticated the user at the client end, and) s5 558 M(   that the identity of the client user is externally available to the) s5 547 M(   server implementation.) s5 525 M(   In general, this protocol follows a simple request-response model.) s5 514 M(   Each request and response contains a sequence number and multiple) s5 503 M(   requests may be pending simultaneously.  There are a relatively large) s5 492 M(   number of different request messages, but a small number of possible) s5 481 M(   response messages.  Each request has one or more response messages) s5 470 M(   that may be returned in result \(e.g., a read either returns data or) s5 459 M(   reports error status\).) s5 437 M(   The packet format descriptions in this specification follow the) s5 426 M(   notation presented in the secsh architecture draft. [5]) s5 404 M(   Even though this protocol is described in the context of the SSH2) s5 393 M(   protocol, this protocol is general and independent of the rest of the) s5 382 M(   SSH2 protocol suite.  It could be used in a number of different) s5 371 M(   applications, such as secure file transfer over TLS RFC 2246 [1] and) s5 360 M(   transfer of management information in VPN applications.) s5 129 M(Galbraith, et al.        Expires April 16, 2003                 [Page 3]) s_RSPStoPSsaved restoreuserdict/PStoPSsaved save putPStoPSmatrix setmatrix595.000000 421.271378 translate90 rotate0.706651 dup scaleuserdict/PStoPSmatrix matrix currentmatrix putuserdict/PStoPSclip{0 0 moveto 595.000000 0 rlineto 0 842.000000 rlineto -595.000000 0 rlineto closepath}put initclipPStoPSxform concat%%BeginPageSetup_S75 0 translate/pagenum 4 def/fname () def/fdir () def/ftail () def/user_header_p false def%%EndPageSetup5 723 M(Internet-Draft         SSH File Transfer Protocol           October 2002) s5 690 M(2. Use with the SSH Connection Protocol) s5 668 M(   When used with the SSH2 Protocol suite, this protocol is intended to) s5 657 M(   be used from the SSH Connection Protocol [7] as a subsystem, as) s5 646 M(   described in section ``Starting a Shell or a Command''.  The) s5 635 M(   subsystem name used with this protocol is "sftp".) s5 129 M(Galbraith, et al.        Expires April 16, 2003                 [Page 4]) s_RSPStoPSsaved restore%%Page: (4,5) 3userdict/PStoPSsaved save putPStoPSmatrix setmatrix595.000000 0.271378 translate90 rotate0.706651 dup scaleuserdict/PStoPSmatrix matrix currentmatrix putuserdict/PStoPSclip{0 0 moveto 595.000000 0 rlineto 0 842.000000 rlineto -595.000000 0 rlineto closepath}put initclip/showpage{}def/copypage{}def/erasepage{}defPStoPSxform concat%%BeginPageSetup_S75 0 translate/pagenum 5 def/fname () def/fdir () def/ftail () def/user_header_p false def%%EndPageSetup5 723 M(Internet-Draft         SSH File Transfer Protocol           October 2002) s5 690 M(3. General Packet Format) s5 668 M(   All packets transmitted over the secure connection are of the) s5 657 M(   following format:) s5 635 M(        uint32             length) s5 624 M(        byte               type) s5 613 M(        byte[length - 1]   data payload) s5 591 M(   That is, they are just data preceded by 32-bit length and 8-bit type) s5 580 M(   fields.  The `length' is the length of the data area, and does not) s5 569 M(   include the `length' field itself.  The format and interpretation of) s5 558 M(   the data area depends on the packet type.) s5 536 M(   All packet descriptions below only specify the packet type and the) s5 525 M(   data that goes into the data field.  Thus, they should be prefixed by) s5 514 M(   the `length' and `type' fields.) s5 492 M(   The maximum size of a packet is in practice determined by the client) s5 481 M(   \(the maximum size of read or write requests that it sends, plus a few) s5 470 M(   bytes of packet overhead\).  All servers SHOULD support packets of at) s5 459 M(   least 34000 bytes \(where the packet size refers to the full length,) s5 448 M(   including the header above\).  This should allow for reads and writes) s5 437 M(   of at most 32768 bytes.) s5 415 M(   There is no limit on the number of outstanding \(non-acknowledged\)) s5 404 M(   requests that the client may send to the server.  In practice this is) s5 393 M(   limited by the buffering available on the data stream and the queuing) s5 382 M(   performed by the server.  If the server's queues are full, it should) s5 371 M(   not read any more data from the stream, and flow control will prevent) s5 360 M(   the client from sending more requests.  Note, however, that while) s5 349 M(   there is no restriction on the protocol level, the client's API may) s5 338 M(   provide a limit in order to prevent infinite queuing of outgoing) s5 327 M(   requests at the client.) s5 305 M(   The following values are defined for packet types.) s5 129 M(Galbraith, et al.        Expires April 16, 2003                 [Page 5]) s_RSPStoPSsaved restoreuserdict/PStoPSsaved save putPStoPSmatrix setmatrix595.000000 421.271378 translate90 rotate0.706651 dup scaleuserdict/PStoPSmatrix matrix currentmatrix putuserdict/PStoPSclip{0 0 moveto 595.000000 0 rlineto 0 842.000000 rlineto -595.000000 0 rlineto closepath}put initclipPStoPSxform concat%%BeginPageSetup_S75 0 translate/pagenum 6 def/fname () def/fdir () def/ftail () def/user_header_p false def%%EndPageSetup5 723 M(Internet-Draft         SSH File Transfer Protocol           October 2002) s5 690 M(        #define SSH_FXP_INIT                1) s5 679 M(        #define SSH_FXP_VERSION             2) s5 668 M(        #define SSH_FXP_OPEN                3) s5 657 M(        #define SSH_FXP_CLOSE               4) s5 646 M(        #define SSH_FXP_READ                5) s5 635 M(        #define SSH_FXP_WRITE               6) s5 624 M(        #define SSH_FXP_LSTAT               7) s5 613 M(        #define SSH_FXP_FSTAT               8) s5 602 M(        #define SSH_FXP_SETSTAT             9) s

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?