On Wed, 6 Nov 2024, Chris Rapier wrote:
> I think I know the answer to this (which would be that you can't) but
is there
> any not entirely insane way to get the ssh->compat information back to
either
> scp or sftp?
There's no way at present.
> I'm doing some extensions on scp (and eventually sftp) and having
remote
> version or capability information would be helpful.
IMO it would be easier for SFTP, as the protocol has an explicit
extension mechanism. If you're prepared to trust this mechanism
to make assertions about the SSH channel the SFTP session is
running over, then it would be very easy to wire it up to make
changes to buffer sizes, the number of requests in flight, etc.
as these are already configurable.
-d