fisher-andrew-m-aa commented on issue #436:
URL: https://github.com/apache/mina-sshd/issues/436#issuecomment-2318533235

   It looks like we've found our issue.  
   
   We've apparently had a race condition related to getting SFTP sessions from 
the factory due to our architecture (application is handling many requests with 
differing credentials at once, but factory was defined as a Spring Bean with 
larger-than-request scope) for a very long time, but JSch would just quietly 
retry until the race resolved and then authenticate and get the session.
   
   Mina (correctly) fails out and yells about authentication, presumably after 
the first password authentication fails, and then it can't find a key or 
anything else to use.  Limiting the scope of the factory to the thread level so 
it's only trying to use one set of credentials per request and not bleeding 
them over into other SFTP session opens appears to have solved the issue. 
   
   Thanks for your help with this!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to