IETF-SSH archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: SFTP SSH_FXP_REALPATH packet question



Nickolay L. wrote:
Hello,

  In draft-ietf-secsh-filexfer-10.txt said, that packet has the
  following format :

  byte   SSH_FXP_REALPATH
  uint32 request-id
  string original-path [UTF-8]
  byte   control-byte [optional]
  string compose-path[0..n] [optional]

  So the question is : how do I logicaly-correct recognize, is the
  control-byte present, or absent? The way is to see the first byte
  after other fields, if it zero (It seems that compose-path will not
  be bigger than 2^24), the control-byte is absent. But this way not
  looks like the best..

Sorry that it isn't clear.  control-byte is _not_ optional
if compose-path is specified.

In other words, it is permissible to omit:

a.) both control-byte & compose-path
b.) compose-path only

It is not permissible to omit the control-byte if the compose-path
is present.

  And another question, are there any available implementations of
  clients/server which supports versions 5 or/and 6 of SFTP protocol?

The WinSCP client supports v5.

VanDykes VShell server supports v5.

I don't know of any v6 implementations yet, though I know both
VanDyke's VShell and WinSCP do support some of the extensions
from v6.

Thanks,

Joseph



Home | Main Index | Thread Index | Old Index