[
https://issues.apache.org/jira/browse/SSHD-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17197478#comment-17197478
]
Lyor Goldstein edited comment on SSHD-1077 at 9/17/20, 8:05 AM:
----------------------------------------------------------------
I have tested the code and it works as expected
{quote}
java.io.StreamCorruptedException: Selected version (6) not part of available:
[3]
{quote}
This is undoubtedly due to the fact that your code asked for version 6 where
the server only supports version 3 - happens for me as well when I try it with
such a server.
{quote}
I tried with both 6 and 3. No luck
{quote}
I cannot reproduce this - I tried with 3 and it succeeds (my server is
OpenSSH). You can try it yourself in branch
https://github.com/lgoldstein/mina-sshd/tree/SSHD-1077 - activate
{{SftpCommandMain}} with {{-o sftp-version=3}} and try. If you do not succeed
then I can only conclude that you are accessing some non-standard/non-compliant
server.
was (Author: lgoldstein):
I have tested the code and it works as expected
{quote}
java.io.StreamCorruptedException: Selected version (6) not part of available:
[3]
{quote}
This is undoubtedly due to the fact that your code asked for version 6 where
the server only supports version 3 - happens for me as well and I try it with
such a server.
{quote}
I tried with both 6 and 3. No luck
{quote}
I cannot reproduce this - I tried with 3 and it succeeds (my server is
OpenSSH). You can try it yourself in branch
https://github.com/lgoldstein/mina-sshd/tree/SSHD-1077 - activate
{{SftpCommandMain}} with {{-o sftp-version=3}} and try. If you do not succeed
then I can only conclude that you are accessing some non-standard/non-compliant
server.
> Getting StreamCorruptedException while creating sftp connection
> ---------------------------------------------------------------
>
> Key: SSHD-1077
> URL: https://issues.apache.org/jira/browse/SSHD-1077
> Project: MINA SSHD
> Issue Type: Bug
> Affects Versions: 2.5.0, 2.5.1
> Environment: Production
> Reporter: Subramaniajeeva
> Assignee: Lyor Goldstein
> Priority: Major
>
> After upgrading to latest release 2.5.1, I started seeing below error when
> connecting with sftp client:
> java.io.StreamCorruptedException: Selected version (6) not part of available:
> [3]
> at
> org.apache.sshd.client.subsystem.sftp.impl.DefaultSftpClient.negotiateVersion(DefaultSftpClient.java:522)
> ~[sshd-sftp-2.5.1.jar:2.5.1]
> at
> org.apache.sshd.client.subsystem.sftp.impl.DefaultSftpClientFactory.createSftpClient(DefaultSftpClientFactory.java:49)
> ~[sshd-sftp-2.5.1.jar:2.5.1]
> at
> org.apache.sshd.client.subsystem.sftp.SftpClientFactory.createSftpClient(SftpClientFactory.java:59)
> ~[sshd-sftp-2.5.1.jar:2.5.1]
> at
>
> There was a change done for the version selector in one of the commit around
> May:
> [https://github.com/apache/mina-sshd/commit/a8c7e3b5d3f0525cc02d258fde361e8bd58669e5]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]