One SSH_FXP_DATA record split over SSH_MSG_CHANNEL_DATA packets

Damien Miller djm at mindrot.org
Fri Mar 20 08:39:06 AEDT 2015


On Thu, 19 Mar 2015, Anton Scheffer wrote:

> Hi,
> 
> I'm developing my own sftp client.
>
> When I try to read a file larger than 16371 bytes from a OpenSSH
> server my program fails. And that is because it doesn't expect a
> SSH_FXP_DATA record to be send through two SSH_MSG_CHANNEL_DATA
> packets.
...
> Is this normal, to be expected, behavior? I can't find anything
> regarding this in the RFC's.

Yes, the filexfer runs atop the channel protocol and is completely
ignorant of the latter's framing of its messages. In OpenSSH, they
are totally separate programs.

-d


More information about the openssh-unix-dev mailing list