You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Lyor Goldstein (Jira)" <ji...@apache.org> on 2020/06/23 17:05:00 UTC

[jira] [Commented] (SSHD-1021) When I use mina-sftp to connect to my device, there is a problem

    [ https://issues.apache.org/jira/browse/SSHD-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17143115#comment-17143115 ] 

Lyor Goldstein commented on SSHD-1021:
--------------------------------------

This is an extremely old version - SFTP has been re-factored and many bugs in it have fixed. Not only that, but specifically the whole SFTP version negotiation has been greatly improved - see [this link|https://github.com/apache/mina-sshd/blob/master/docs/sftp.md#version-selection-via-sftpversionselector].  I strongly recommend upgrading to latest released version - 2.5.1 - as we do not provide support for old versions (not because we don't want to but because we cannot due to extremely limited R&D resources...).

> When I use mina-sftp to connect to my device, there is a problem
> ----------------------------------------------------------------
>
>                 Key: SSHD-1021
>                 URL: https://issues.apache.org/jira/browse/SSHD-1021
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>            Reporter: barry-gq
>            Priority: Major
>         Attachments: image-2020-06-23-09-46-39-470.png, image-2020-06-23-09-49-22-137.png, image-2020-06-23-09-52-36-400.png
>
>
> My project uses mina-sshd version 1.7. When I try to use winscp to connect to my device (after some processing of my project), and the sftp version selected in the advanced settings of winscp is 6, it can also succeedConnected, but the owner and group display errors, all displayed as OWNER@
> !image-2020-06-23-09-46-39-470.png! (Connect devices through my project)
> But when I try to connect to the device using winscp without going through my project, and the sftp version is also set to 6, it is normal to connect, and winscp and the device finally negotiated to use the sftp 3 version to connect, although this intermediate negotiationThe process is not particularly understood, but can solve my problem. I don’t know whether mina-sshd sftp has a similar configuration to solve this problem. I hope the author can reply to my question. Thank you
> !image-2020-06-23-09-49-22-137.png! (Not connecting the device through my project)
>  
> When connecting the device through my project, I found through debugging that the id value of the SftpSubsystem.doInit() method is 6, if I change it to 3 later, it will be normal, but I think this is not a good method.So I don’t know if the author has any good suggestions
> !image-2020-06-23-09-52-36-400.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org