ashishkumar2804 commented on issue #340: URL: https://github.com/apache/mina-sshd/issues/340#issuecomment-1480654212
Bu debugging as above, found that while setting server keypair, it is taking default Algorithm as EC, which was causing the issue. Fixed that, but now i am not able to connect to server by creating SFTP Client using the clientSession. Below is the code i have used to connect `m_internalSftpClient = SftpClientFactory.instance().createSftpClient(m_clientSession);` The logs, which i see is as below `2023-03-23T06:03:22,906Z app=mpgs resource=EmbeddedSftpServer INFO [thread_id=1] Starting up embedded SFTP server. 2023-03-23T06:03:23,380Z app=mpgs resource=EmbeddedSftpServer INFO [thread_id=1] Embedded SFTP server started successfully 2023-03-23T06:03:24,109Z app=mpgs resource=ServerSessionImpl INFO [thread_id=56] Session sftp@/127.0.0.1:62271 authenticated Caused by: org.apache.sshd.common.SshException: DefaultOpenFuture[SftpChannelSubsystem[id=0, recipient=-1]-ClientSessionImpl[sftp@localhost/127.0.0.1:2222][sftp]]: Failed ` What i am confused is at the port address, i had provided port 2222, while creating the server, also while creating the sshClient. But while authenticating, it is showing be different port which was used for the purpose. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
