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

Thomas Wolf commented on SSHD-1318:
-----------------------------------

Did you verify with a packet trace that this is the same as SSHD-1204? IIRC, 
the server sent in that case in one single message its KexInit followed by its 
identification, when it should have been two messages, first the 
identification, then the KexInit.

The only drawback of setting this flag I know of is that if you have a server 
that somehow waits until it has received the client's KexInit, the connection 
will stall since the client will be waiting for the server's KexInit first...

I wonder what implementation is used by this server...

 

> Question about SSHD-1204
> ------------------------
>
>                 Key: SSHD-1318
>                 URL: https://issues.apache.org/jira/browse/SSHD-1318
>             Project: MINA SSHD
>          Issue Type: Question
>    Affects Versions: 2.8.0
>            Reporter: Roberto Deandrea
>            Priority: Minor
>
> Hi Thomas,
> I have a SSHD client 2.8.0 connecting to a SFTP server which identifies 
> itself with this banner *SSH-2.0-SFTP Server.*
> The SFTP client fails to authenticate with the following error:
> _Caused by: org.apache.sshd.common.SshException: 
> DefaultAuthFuture[ssh-connection]: Failed (StreamCorruptedException) to 
> execute: Incorrect identification (null characters not allowed) - at line 1 
> character #1 after ''_
> This is the symptom described in SSHD-1204.
> The problem described in SSHD-1204 was solved with a workaround, i.e. setting 
> {color:#242424}*org.apache.sshd.send-immediate-kex-init=false* for the SFTP 
> client.{color}
>  
> {color:#242424}Q. Do you think is safe setting 
> {color:#242424}*org.apache.sshd.send-immediate-kex-init=false* for every SFTP 
> client ; are you aware of any side effects ?{color}{color}
>  
> {color:#242424}{color:#242424}{color:#242424}{color:#242424}Thank you in 
> advance{color}{color}{color}{color}
> {color:#242424}{color:#242424}Kind Regards{color}{color}
>  
> {color:#242424}{color:#242424}Roberto{color}{color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to