draft-ietf-secsh-filexfer-02.2.ps

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

PS
2,134
字号
(Network Working Group                                          T. Ylonen) s5 690 M(Internet-Draft                                               S. Lehtinen) s5 679 M(Expires: April 1, 2002                  SSH Communications Security Corp) s5 668 M(                                                            October 2001) s5 635 M(                       SSH File Transfer Protocol) s5 624 M(                    draft-ietf-secsh-filexfer-02.txt) s5 602 M(Status of this Memo) s5 580 M(   This document is an Internet-Draft and is in full conformance with) s5 569 M(   all provisions of Section 10 of RFC2026.) s5 547 M(   Internet-Drafts are working documents of the Internet Engineering) s5 536 M(   Task Force \(IETF\), its areas, and its working groups.  Note that) s5 525 M(   other groups may also distribute working documents as Internet-) s5 514 M(   Drafts.) s5 492 M(   Internet-Drafts are draft documents valid for a maximum of six months) s5 481 M(   and may be updated, replaced, or obsoleted by other documents at any) s5 470 M(   time.  It is inappropriate to use Internet-Drafts as reference) s5 459 M(   material or to cite them other than as "work in progress.") s5 437 M(   The list of current Internet-Drafts can be accessed at http://) s5 426 M(   www.ietf.org/ietf/1id-abstracts.txt.) s5 404 M(   The list of Internet-Draft Shadow Directories can be accessed at) s5 393 M(   http://www.ietf.org/shadow.html.) s5 371 M(   This Internet-Draft will expire on April 1, 2002.) s5 349 M(Copyright Notice) s5 327 M(   Copyright \(C\) The Internet Society \(2001\).  All Rights Reserved.) s5 305 M(Abstract) s5 283 M(   The SSH File Transfer Protocol provides secure file transfer) s5 272 M(   functionality over any reliable data stream.  It is the standard file) s5 261 M(   transfer protocol for use with the SSH2 protocol.  This document) s5 250 M(   describes the file transfer protocol and its interface to the SSH2) s5 239 M(   protocol suite.) s5 129 M(Ylonen & Lehtinen         Expires April 1, 2002                 [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 2001) 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(   5.   File Attributes  . . . . . . . . . . . . . . . . . . . . . .   8) s5 613 M(   6.   Requests From the Client to the Server . . . . . . . . . . .  10) s5 602 M(   6.1  Request Synchronization and Reordering . . . . . . . . . . .  10) s5 591 M(   6.2  File Names . . . . . . . . . . . . . . . . . . . . . . . . .  11) s5 580 M(   6.3  Opening, Creating, and Closing Files . . . . . . . . . . . .  11) s5 569 M(   6.4  Reading and Writing  . . . . . . . . . . . . . . . . . . . .  13) s5 558 M(   6.5  Removing and Renaming Files  . . . . . . . . . . . . . . . .  14) s5 547 M(   6.6  Creating and Deleting Directories  . . . . . . . . . . . . .  15) s5 536 M(   6.7  Scanning Directories . . . . . . . . . . . . . . . . . . . .  15) s5 525 M(   6.8  Retrieving File Attributes . . . . . . . . . . . . . . . . .  16) s5 514 M(   6.9  Setting File Attributes  . . . . . . . . . . . . . . . . . .  17) s5 503 M(   6.10 Dealing with Symbolic links  . . . . . . . . . . . . . . . .  18) s5 492 M(   6.11 Canonicalizing the Server-Side Path Name . . . . . . . . . .  18) s5 481 M(   7.   Responses from the Server to the Client  . . . . . . . . . .  20) s5 470 M(   8.   Vendor-Specific Extensions . . . . . . . . . . . . . . . . .  24) s5 459 M(   9.   Security Considerations  . . . . . . . . . . . . . . . . . .  25) s5 448 M(   10.  Changes from previous protocol versions  . . . . . . . . . .  26) s5 437 M(   10.1 Changes between versions 3 and 2 . . . . . . . . . . . . . .  26) s5 426 M(   10.2 Changes between versions 2 and 1 . . . . . . . . . . . . . .  26) s5 415 M(   10.3 Changes between versions 1 and 0 . . . . . . . . . . . . . .  26) s5 404 M(   11.  Trademark Issues . . . . . . . . . . . . . . . . . . . . . .  27) s5 393 M(        References . . . . . . . . . . . . . . . . . . . . . . . . .  28) s5 382 M(        Authors' Addresses . . . . . . . . . . . . . . . . . . . . .  28) s5 371 M(        Full Copyright Statement . . . . . . . . . . . . . . . . . .  29) s5 129 M(Ylonen & Lehtinen         Expires April 1, 2002                 [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 2001) 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 [3].) 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.[3].) 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(Ylonen & Lehtinen         Expires April 1, 2002                 [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 2001) 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 [5] 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(Ylonen & Lehtinen         Expires April 1, 2002                 [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 2001) 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 129 M(Ylonen & Lehtinen         Expires April 1, 2002                 [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 2001) s5 690 M(   The following values are defined for packet types.) s5 668 M(        #define SSH_FXP_INIT                1) s5 657 M(        #define SSH_FXP_VERSION             2) s5 646 M(        #define SSH_FXP_OPEN                3) s5 635 M(        #define SSH_FXP_CLOSE               4) s5 624 M(        #define SSH_FXP_READ                5) s5 613 M(        #define SSH_FXP_WRITE               6) s5 602 M(        #define SSH_FXP_LSTAT               7) s5 591 M(        #define SSH_FXP_FSTAT               8) s5 580 M(        #define SSH_FXP_SETSTAT             9) s5 569 M(        #define SSH_FXP_FSETSTAT           10) s5 558 M(        #define SSH_FXP_OPENDIR            11) s5 547 M(        #define SSH_FXP_READDIR            12) s5 536 M(        #define SSH_FXP_REMOVE             13) s5 525 M(        #define SSH_FXP_MKDIR              14) s5 514 M(        #define SSH_FXP_RMDIR              15) s5 503 M(        #define SSH_FXP_REALPATH           16) s5 492 M(        #define SSH_FXP_STAT               17) s5 481 M(        #define SSH_FXP_RENAME             18) s5 470 M(        #define SSH_FXP_READLINK           19) s5 459 M(        #define SSH_FXP_SYMLINK            20) s5 448 M(        #define SSH_FXP_STATUS            101) s5 437 M(        #define SSH_FXP_HANDLE            102) s5 426 M(        #define SSH_FXP_DATA              103) s5 415 M(        #define SSH_FXP_NAME              104) s5 404 M(        #define SSH_FXP_ATTRS             105) s5 393 M(        #define SSH_FXP_EXTENDED          200) s5 382 M(        #define SSH_FXP_EXTENDED_REPLY    201) s5 360 M(   Additional packet types should only be defined if the protocol) s5 349 M(   version number \(see Section ``Protocol Initialization''\) is) s

⌨️ 快捷键说明

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