draft-ietf-secsh-filexfer-02.2.ps
来自「OTP是开放电信平台的简称」· PS 代码 · 共 2,134 行 · 第 1/5 页
PS
2,134 行
5 316 M( SSH_FXP_READDIR requests. Each SSH_FXP_READDIR request returns one) s5 305 M( or more file names with full file attributes for each file. The) s5 294 M( client should call SSH_FXP_READDIR repeatedly until it has found the) s5 283 M( file it is looking for or until the server responds with a) s5 272 M( SSH_FXP_STATUS message indicating an error \(normally SSH_FX_EOF if) s5 261 M( there are no more files in the directory\). The client should then) s5 250 M( close the handle using the SSH_FXP_CLOSE request.) s5 129 M(Ylonen & Lehtinen Expires April 1, 2002 [Page 15]) 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 16 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 SSH_FXP_OPENDIR opens a directory for reading. It has the) s5 679 M( following format:) s5 657 M( uint32 id) s5 646 M( string path) s5 624 M( where `id' is the request identifier and `path' is the path name of) s5 613 M( the directory to be listed \(without any trailing slash\). See Section) s5 602 M( ``File Names'' for more information on file names. This will return) s5 591 M( an error if the path does not specify a directory or if the directory) s5 580 M( is not readable. The server will respond to this request with either) s5 569 M( a SSH_FXP_HANDLE or a SSH_FXP_STATUS message.) s5 547 M( Once the directory has been successfully opened, files \(and) s5 536 M( directories\) contained in it can be listed using SSH_FXP_READDIR) s5 525 M( requests. These are of the format) s5 503 M( uint32 id) s5 492 M( string handle) s5 470 M( where `id' is the request identifier, and `handle' is a handle) s5 459 M( returned by SSH_FXP_OPENDIR. \(It is a protocol error to attempt to) s5 448 M( use an ordinary file handle returned by SSH_FXP_OPEN.\)) s5 426 M( The server responds to this request with either a SSH_FXP_NAME or a) s5 415 M( SSH_FXP_STATUS message. One or more names may be returned at a time.) s5 404 M( Full status information is returned for each name in order to speed) s5 393 M( up typical directory listings.) s5 371 M( When the client no longer wishes to read more names from the) s5 360 M( directory, it SHOULD call SSH_FXP_CLOSE for the handle. The handle) s5 349 M( should be closed regardless of whether an error has occurred or not.) s5 327 M(6.8 Retrieving File Attributes) s5 305 M( Very often, file attributes are automatically returned by) s5 294 M( SSH_FXP_READDIR. However, sometimes there is need to specifically) s5 283 M( retrieve the attributes for a named file. This can be done using the) s5 272 M( SSH_FXP_STAT, SSH_FXP_LSTAT and SSH_FXP_FSTAT requests.) s5 250 M( SSH_FXP_STAT and SSH_FXP_LSTAT only differ in that SSH_FXP_STAT) s5 239 M( follows symbolic links on the server, whereas SSH_FXP_LSTAT does not) s5 228 M( follow symbolic links. Both have the same format:) s5 206 M( uint32 id) s5 195 M( string path) s5 173 M( where `id' is the request identifier, and `path' specifies the file) s5 129 M(Ylonen & Lehtinen Expires April 1, 2002 [Page 16]) s_RSPStoPSsaved restore%%Page: (16,17) 9userdict/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 17 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( system object for which status is to be returned. The server) s5 679 M( responds to this request with either SSH_FXP_ATTRS or SSH_FXP_STATUS.) s5 657 M( SSH_FXP_FSTAT differs from the others in that it returns status) s5 646 M( information for an open file \(identified by the file handle\). Its) s5 635 M( format is as follows:) s5 613 M( uint32 id) s5 602 M( string handle) s5 580 M( where `id' is the request identifier and `handle' is a file handle) s5 569 M( returned by SSH_FXP_OPEN. The server responds to this request with) s5 558 M( SSH_FXP_ATTRS or SSH_FXP_STATUS.) s5 536 M(6.9 Setting File Attributes) s5 514 M( File attributes may be modified using the SSH_FXP_SETSTAT and) s5 503 M( SSH_FXP_FSETSTAT requests. These requests are used for operations) s5 492 M( such as changing the ownership, permissions or access times, as well) s5 481 M( as for truncating a file.) s5 459 M( The SSH_FXP_SETSTAT request is of the following format:) s5 437 M( uint32 id) s5 426 M( string path) s5 415 M( ATTRS attrs) s5 393 M( where `id' is the request identifier, `path' specifies the file) s5 382 M( system object \(e.g. file or directory\) whose attributes are to be) s5 371 M( modified, and `attrs' specifies the modifications to be made to its) s5 360 M( attributes. Attributes are discussed in more detail in Section) s5 349 M( ``File Attributes''.) s5 327 M( An error will be returned if the specified file system object does) s5 316 M( not exist or the user does not have sufficient rights to modify the) s5 305 M( specified attributes. The server responds to this request with a) s5 294 M( SSH_FXP_STATUS message.) s5 272 M( The SSH_FXP_FSETSTAT request modifies the attributes of a file which) s5 261 M( is already open. It has the following format:) s5 239 M( uint32 id) s5 228 M( string handle) s5 217 M( ATTRS attrs) s5 195 M( where `id' is the request identifier, `handle' \(MUST be returned by) s5 184 M( SSH_FXP_OPEN\) identifies the file whose attributes are to be) s5 173 M( modified, and `attrs' specifies the modifications to be made to its) s5 129 M(Ylonen & Lehtinen Expires April 1, 2002 [Page 17]) 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 18 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( attributes. Attributes are discussed in more detail in Section) s5 679 M( ``File Attributes''. The server will respond to this request with) s5 668 M( SSH_FXP_STATUS.) s5 646 M(6.10 Dealing with Symbolic links) s5 624 M( The SSH_FXP_READLINK request may be used to read the target of a) s5 613 M( symbolic link. It would have a data part as follows:) s5 591 M( uint32 id) s5 580 M( string path) s5 558 M( where `id' is the request identifier and `path' specifies the path) s5 547 M( name of the symlink to be read.) s5 525 M( The server will respond with a SSH_FXP_NAME packet containing only) s5 514 M( one name and a dummy attributes value. The name in the returned) s5 503 M( packet contains the target of the link. If an error occurs, the) s5 492 M( server may respond with SSH_FXP_STATUS.) s5 470 M( The SSH_FXP_SYMLINK request will create a symbolic link on the) s5 459 M( server. It is of the following format) s5 437 M( uint32 id) s5 426 M( string linkpath) s5 415 M( string targetpath) s5 393 M( where `id' is the request identifier, `linkpath' specifies the path) s5 382 M( name of the symlink to be created and `targetpath' specifies the) s5 371 M( target of the symlink. The server shall respond with a) s5 360 M( SSH_FXP_STATUS indicating either success \(SSH_FX_OK\) or an error) s5 349 M( condition.) s5 327 M(6.11 Canonicalizing the Server-Side Path Name) s5 305 M( The SSH_FXP_REALPATH request can be used to have the server) s5 294 M( canonicalize any given path name to an absolute path. This is useful) s5 283 M( for converting path names containing ".." components or relative) s5 272 M( pathnames without a leading slash into absolute paths. The format of) s5 261 M( the request is as follows:) s5 239 M( uint32 id) s5 228 M( string path) s5 206 M( where `id' is the request identifier and `path' specifies the path) s5 195 M( name to be canonicalized. The server will respond with a) s5 184 M( SSH_FXP_NAME packet containing only one name and a dummy attributes) s5 173 M( value. The name is the returned packet will be in canonical form.) s5 129 M(Ylonen & Lehtinen Expires April 1, 2002 [Page 18]) s_RSPStoPSsaved restore%%Page: (18,19) 10userdict/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 19 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( If an error occurs, the server may also respond with SSH_FXP_STATUS.) s5 129 M(Ylonen & Lehtinen Expires April 1, 2002 [Page 19]) 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 20 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(7. Responses from the Server to the Client) s5 668 M( The server responds to the client using one of a few response) s5 657 M( packets. All requests can return a SSH_FXP_STATUS response upon) s5 646 M( failure. When the operation is successful, any of the responses may) s5 635 M( be returned \(depending on the operation\). If no data needs to be) s5 624 M( returned to the client, the SSH_FXP_STATUS response with SSH_FX_OK) s5 613 M( status is appropriate. Otherwise, the SSH_FXP_HANDLE message is used) s5 602 M( to return a file handle \(for SSH_FXP_OPEN and SSH_FXP_OPENDIR) s5 591 M( requests\), SSH_FXP_DATA is used to return data from SSH_FXP_READ,) s5 580 M( SSH_FXP_NAME is used to return one or more file names from a) s5 569 M( SSH_FXP_READDIR or SSH_FXP_REALPATH request, and SSH_FXP_ATTRS is) s5 558 M( used to return file attributes from SSH_FXP_STAT, SSH_FXP_LSTAT, and) s5 547 M( SSH_FXP_FSTAT requests.) s5 525 M( Exactly one response will be returned for each request. Each) s5 514 M( response packet contains a request identifier which can be used to) s5 503 M( match each response with the corresponding request. Note that it is) s5 492 M( legal to have several requests outstanding simultaneously, and the) s5 481 M( server is allowed to send responses to them in a different order from) s5 470 M( the order in which the requests were sent \(the result of their) s5 459 M( execution, however, is guaranteed to be as if they had been processed) s5 448 M( one at a time in the order in which the requests were sent\).) s5 426 M( Response packets are of the same general format as request packets.) s5 415 M( Each response packet begins with the request identifier.) s5 393 M( The format of the data portion of the SSH_FXP_STATUS response is as) s5 382 M( follows:) s5 360 M( uint32 id) s5 349 M( uint32 error/status code) s5 338 M( string error message \(ISO-10646 UTF-8 [RFC-2279]\)) s5 327 M( string language tag \(as defined in [RFC-1766]\)) s5 305 M( where `id' is the request identi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?