[
https://issues.apache.org/jira/browse/SSHD-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16780509#comment-16780509
]
Goldstein Lyor commented on SSHD-903:
-------------------------------------
{quote}
Rhe SSH_FXP_VERSION packet (from server to client) has the following data:
uint32 version extension-pair extensions[0..n] 'version' is the lower of the
protocol version supported by the server and the version number received from
the client.
{quote}
I see your point - I believe you are right and will make the fix - especially
since [draft 02|https://tools.ietf.org/id/draft-ietf-secsh-filexfer-02.txt]
also states in section 4:
{quote}
When the file transfer protocol starts, it first sends a SSH_FXP_INIT
(including its version number) packet to the server. The server
responds with a SSH_FXP_VERSION packet, supplying the lowest of its
own and the client's version number.
{quote}
I don't remember why I thought that the server should reject attempts by the
client to use a higher version than it support.
> SFTP version negotiation does not work
> ----------------------------------------
>
> Key: SSHD-903
> URL: https://issues.apache.org/jira/browse/SSHD-903
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 2.2.0
> Reporter: Mark Ebbers
> Assignee: Goldstein Lyor
> Priority: Major
> Attachments: screenshot-winscp-sftp-version.png, sftp-version-1.png,
> sftp-version-2.png, winscp-info.png, winscp.png
>
>
> I have some problems with uploading files to our MINA SSHD based SFTP server
> when using ,different version, of WinSCP as SFTP client. WinSCP is configured
> to use version 6 of the SFTP protocol if possible.
> Uploading a file of ~ 45KB sometimes result in a file of 32711 bytes where in
> the data is not appended (from the second SFTP packet) but overwritten. (But
> did not pin point the exact bug)
> As a temporary solution I found, in issue SSHD-874, a comment which suggest
> to force the server to use sftp-protocol version 3. If I do this I expect the
> server to negotiate with the client that version 3 should be used instead of
> version 6. But what happens is that the server sends a not supported message.
>
> I think that the AbstractSftpSubsystemHelper::checkVersionCompatibility() is
> the problem.
> See my screenshots. As you can see the version proposed by WinSCP is version
> 6. I forced the server on version 3.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)