draft-ietf-secsh-filexfer-03.2.ps
来自「OTP是开放电信平台的简称」· PS 代码 · 共 2,108 行 · 第 1/5 页
PS
2,108 行
5 591 M( #define SSH_FXP_FSETSTAT 10) s5 580 M( #define SSH_FXP_OPENDIR 11) s5 569 M( #define SSH_FXP_READDIR 12) s5 558 M( #define SSH_FXP_REMOVE 13) s5 547 M( #define SSH_FXP_MKDIR 14) s5 536 M( #define SSH_FXP_RMDIR 15) s5 525 M( #define SSH_FXP_REALPATH 16) s5 514 M( #define SSH_FXP_STAT 17) s5 503 M( #define SSH_FXP_RENAME 18) s5 492 M( #define SSH_FXP_READLINK 19) s5 481 M( #define SSH_FXP_SYMLINK 20) s5 459 M( #define SSH_FXP_STATUS 101) s5 448 M( #define SSH_FXP_HANDLE 102) s5 437 M( #define SSH_FXP_DATA 103) s5 426 M( #define SSH_FXP_NAME 104) s5 415 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( RESERVED_FOR_EXTENSIONS 210-255) s5 338 M( Additional packet types should only be defined if the protocol) s5 327 M( version number \(see Section ``Protocol Initialization''\) is) s5 316 M( incremented, and their use MUST be negotiated using the version) s5 305 M( number. However, the SSH_FXP_EXTENDED and SSH_FXP_EXTENDED_REPLY) s5 294 M( packets can be used to implement vendor-specific extensions. See) s5 283 M( Section ``Vendor-Specific-Extensions'' for more details.) s5 129 M(Galbraith, et al. Expires April 16, 2003 [Page 6]) s_RSPStoPSsaved restore%%Page: (6,7) 4userdict/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 7 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(4. Protocol Initialization) s5 668 M( When the file transfer protocol starts, the client first sends a) s5 657 M( SSH_FXP_INIT \(including its version number\) packet to the server.) s5 646 M( The server responds with a SSH_FXP_VERSION packet, supplying the) s5 635 M( lowest of its own and the client's version number. Both parties) s5 624 M( should from then on adhere to particular version of the protocol.) s5 602 M( The version number of the protocol specified in this document is 4.) s5 591 M( The version number should be incremented for each incompatible) s5 580 M( revision of this protocol.) s5 558 M(4.1 Client Initialization) s5 536 M( The SSH_FXP_INIT packet \(from client to server\) has the following) s5 525 M( data:) s5 503 M( uint32 version) s5 481 M( Version 3 of this protocol allowed clients to include extensions in) s5 470 M( the SSH_FXP_INIT packet; however, this can cause interoperability) s5 459 M( problems with version 1 and version 2 servers because the client must) s5 448 M( send this packet before knowing the servers version.) s5 426 M( In this version of the protocol, clients MUST use the) s5 415 M( SSH_FXP_EXTENDED packet to send extensions to the server after) s5 404 M( version exchange has completed. Clients MUST NOT include extensions) s5 393 M( in the version packet. This will prevent interoperability problems) s5 382 M( with older servers) s5 360 M(4.2 Server Initialization) s5 338 M( The SSH_FXP_VERSION packet \(from server to client\) has the following) s5 327 M( data:) s5 305 M( uint32 version) s5 294 M( <extension data>) s5 272 M( 'version' is the lower of the protocol version supported by the) s5 261 M( server and the version number received from the client.) s5 239 M( The extension data may be empty, or may be a sequence of) s5 217 M( string extension_name) s5 206 M( string extension_data) s5 184 M( pairs \(both strings MUST always be present if one is, but the) s5 173 M( `extension_data' string may be of zero length\). If present, these) s5 129 M(Galbraith, et al. Expires April 16, 2003 [Page 7]) 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 8 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( strings indicate extensions to the baseline protocol. The) s5 679 M( `extension_name' field\(s\) identify the name of the extension. The) s5 668 M( name should be of the form "name@domain", where the domain is the DNS) s5 657 M( domain name of the organization defining the extension. Additional) s5 646 M( names that are not of this format may be defined later by the IETF.) s5 635 M( Implementations MUST silently ignore any extensions whose name they) s5 624 M( do not recognize.) s5 602 M(4.3 Determining Server Newline Convention) s5 580 M( In order to correctly process text files in a cross platform) s5 569 M( compatible way, the newline convention must be converted from that of) s5 558 M( the server to that of the client, or, during an upload, from that of) s5 547 M( the client to that of the server.) s5 525 M( Versions 3 and prior of this protocol made no provisions for) s5 514 M( processing text files. Many clients implemented some sort of) s5 503 M( conversion algorithm, but without either a 'canonical' on the wire) s5 492 M( format or knowledge of the servers newline convention, correct) s5 481 M( conversion was not always possible.) s5 459 M( Starting with Version 4, the SSH_FXF_TEXT file open flag \(Section) s5 448 M( 6.3\) makes it possible to request that the server translate a file to) s5 437 M( a 'canonical' on the wire format. This format uses \\r\\n as the line) s5 426 M( separator.) s5 404 M( Servers for systems using multiple newline characters \(for example,) s5 393 M( Mac OS X or VMS\) or systems using counted records, MUST translate to) s5 382 M( the canonical form.) s5 360 M( However, to ease the burden of implementation on servers that use a) s5 349 M( single, simple separator sequence, the following extension allows the) s5 338 M( canonical format to be changed.) s5 316 M( string "newline") s5 305 M( string new-canonical-separator \(usually "\\r" or "\\n" or "\\r\\n"\)) s5 283 M( All clients MUST support this extension.) s5 261 M( When processing text files, clients SHOULD NOT translate any) s5 250 M( character or sequence that is not an exact match of the servers) s5 239 M( newline separator.) s5 217 M( In particular, if the newline sequence being used is the canonical) s5 206 M( "\\r\\n" sequence, a lone \\r or a lone \\n SHOULD be written through) s5 195 M( without change.) s5 129 M(Galbraith, et al. Expires April 16, 2003 [Page 8]) s_RSPStoPSsaved restore%%Page: (8,9) 5userdict/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 9 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(5. File Attributes) s5 668 M( A new compound data type is defined for encoding file attributes.) s5 657 M( The same encoding is used both when returning file attributes from) s5 646 M( the server and when sending file attributes to the server. When) s5 635 M( sending it to the server, the flags field specifies which attributes) s5 624 M( are included, and the server will use default values for the) s5 613 M( remaining attributes \(or will not modify the values of remaining) s5 602 M( attributes\). When receiving attributes from the server, the flags) s5 591 M( specify which attributes are included in the returned data. The) s5 580 M( server normally returns all attributes it knows about.) s5 558 M( uint32 flags) s5 547 M( byte type always present) s5 536 M( uint64 size present only if flag SSH_FILEXFER_ATTR_SIZE) s5 525 M( string owner present only if flag SSH_FILEXFER_ATTR_OWNERGROUP) s5 514 M( string group present only if flag SSH_FILEXFER_ATTR_OWNERGROUP) s5 503 M( uint32 permissions present only if flag SSH_FILEXFER_ATTR_PERMISSIONS) s5 492 M( uint32 atime present only if flag SSH_FILEXFER_ATTR_ACCESSTIME) s5 481 M( uint32 createtime present only if flag SSH_FILEXFER_ATTR_CREATETIME) s5 470 M( uint32 mtime present only if flag SSH_FILEXFER_ATTR_MODIFYTIME) s5 459 M( string acl present only if flag SSH_FILEXFER_ATTR_ACL) s5 448 M( uint32 extended_count present only if flag SSH_FILEXFER_ATTR_EXTENDED) s5 437 M( string extended_type) s5 426 M( string extended_data) s5 415 M( ... more extended data \(extended_type - extended_data pairs\),) s5 404 M( so that number of pairs equals extended_count) s5 371 M(5.1 Flags) s5 349 M( The `flags' specify which of the fields are present. Those fields) s5 338 M( for which the corresponding flag is not set are not present \(not) s5 327 M( included in the packet\). New flags can only be added by incrementing) s5 316 M( the protocol version number \(or by using the extension mechanism) s5 305 M( described below\).) s5 283 M( The flags bits are defined to have the following values:) s5 261 M( #define SSH_FILEXFER_ATTR_SIZE 0x00000001) s5 250 M( #define SSH_FILEXFER_ATTR_PERMISSIONS 0x00000004) s5 239 M( #define SSH_FILEXFER_ATTR_ACCESSTIME 0x00000008) s5 228 M( #define SSH_FILEXFER_ATTR_CREATETIME 0x00000010) s5 217 M( #define SSH_FILEXFER_ATTR_MODIFYTIME 0x00000020) s5 206 M( #define SSH_FILEXFER_ATTR_ACL 0x00000040) s5 195 M( #define SSH_FILEXFER_ATTR_OWNERGROUP 0x00000080) s5 184 M( #define SSH_FILEXFER_ATTR_EXTENDED 0x80000000) s5 129 M(Galbraith, et al. Expires April 16, 2003 [Page 9]) 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 10 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( In previous versions of this protocol flags value 0x00000002 was) s5 679 M( SSH_FILEXFER_ATTR_UIDGID. This value is now unused, and OWNERGROUP) s5 668 M( was given a new value in order to ease implementation burden.) s5 657 M( 0x00000002 MUST NOT appear in the mask. Some future version of this) s5 646 M( protocol may reuse flag 0x00000002.) s5 624 M(5.2 Type) s5 602 M( The type field is always present. The following types are defined:) s5 580 M( #define SSH_FILEXFER_TYPE_REGULAR 1) s5 569 M( #define SSH_FILEXFER_TYPE_DIRECTORY 2) s5 558 M( #define SSH_FILEXFER_TYPE_SYMLINK 3) s5 547 M( #define SSH_FILEXFER_TYPE_SPECIAL 4) s5 536 M( #define SSH_FILEXFER_TYPE_UNKNOWN 5) s5 514 M( On a POSIX system, these values would be derived from the permission) s5 503 M( field.) s5 481 M(5.3 Size) s5 459 M( The `size' field specifies the size of the file on disk, in bytes.) s5 448 M( If it is present during file creation, it should be considered a hint) s5 437 M( as to the files eventual size.) s5 415 M( Files opened with the SSH_FXF_TEXT flag may have a size that is) s5 404 M( greater or less than the value of the size field.) s5 382 M(5.4 Owner and Group) s5 360 M( The `owner' and `group' fields are represented as UTF-8 strings; this) s
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?