ComponentPro.sftp connection error

0
One of our customer reported sftp connection error: Negotiation failed. Requested service is not implemented. We are using .NET flavor of ComponentPro.sftp for SFTP communication. The version we are using 6.8.40.4155. sftp.connect() call is throwing the following error: - Negotiation failed. Requested service is not implemented. Corresponding Stacktarce: > ComponentPro.Net.SftpException: Negotiation failed. Requested service is not implemented. ---> > ComponentPro.Net.SecureShellException: Negotiation failed. Requested > service is not implemented. ---> > ComponentPro.Net.SecureShellException: Requested service is not > implemented. ---> ComponentPro.Net.SecureShellException: Requested > service is not implemented. > at ComponentPro.Net.SecureShellConnection.c_MXD(Byte[] c_QG, Int32 c_OG, Int32 c_RD) > at ComponentPro.Net.SecureShellConnection.c_QSD(Byte[] c_QG, Int32 c_OG, Int32 c_RD) > at ComponentPro.Net.SecureShellConnection.c_DWD() > at ComponentPro.Net.SecureShellConnection.global::c_XPC.c_KQA() > --- End of inner exception stack trace --- > at ComponentPro.Net.SecureShellConnection.c_OWD() > at ComponentPro.Net.SecureShellConnection.c_EQD[T,U](c_BQD`2 c_KSD, Int32 c_P3D, c_CQD c_A4D, U c_MSD, T c_B4D, T c_C4D) > at ComponentPro.Net.SecureShellConnection.c_HQD[T,U](c_BQD`2 c_KSD, U c_MSD) > at ComponentPro.Net.SecureShellConnection.c_UWD(c_SWD c_Z5D) > at c_RAE.c_YUD(SecureShellConnection c_XDD, Byte[] c_LZD, Byte[] c_NZD, Byte[] c_M4D, Byte[] c_H4D, Byte[]& c_MWA, Byte[]& > c_Z4D, SecureShellPublicKey& c_A5D) > at ComponentPro.Net.SecureShellConnection.c_YUD(Byte[] c_H4D) > --- End of inner exception stack trace --- > at ComponentPro.Net.SecureShellConnection.c_YUD(Byte[] c_H4D) > at ComponentPro.Net.SecureShellConnection.Negotiate() > at ComponentPro.Net.Sftp.c_K4E(String c_ROA, Int32 c_PKD, SecureShellConfig c_LJB, AsyncOperation c_M) > --- End of inner exception stack trace --- > at ComponentPro.Net.Sftp.c_K4E(String c_ROA, Int32 c_PKD, SecureShellConfig c_LJB, AsyncOperation c_M) > at ComponentPro.Net.Sftp.Connect(String serverName) We found following link which mentions about same error but not useful in our case. https://www.componentpro.com/qa/negotiation-failed-requested-service-not-implemented We tried to set different algorithms but did not help to resolve the issue. For the same server, SFTP working as expected when testing using Filezilla client on same machine. Can you let us know what is causing issue and how to resolve the error.
 
asked 4/20/2021 8:24:29 AM
add a comment

1 Answers

0
The server may use standard form of diffie-hellman group exchange, although most server support both legacy and standard form. Please try client.Config.UseLegacyGroupExchange = false; Best regards
 
answered 4/20/2021 1:22:12 PM
  I just checked and could not find UseLegacyGroupExchange property in sftp.Config. Could you please let us know the property client.Config.UseLegacyGroupExchange exists? Or it is because of my ComponentPro version 6.8? nagboatw 4/20/2021 3:32:57 PM
  We troubleshooted further and identified that if we set sftp.Config.KeyExchangeAlgorithms value explicitly to SecureShellKeyExchangeAlgorithm.DiffieHellmanGroup14SHA1 then it works. Without setting above value, it is using default that is SecureShellKeyExchangeAlgorithm.Any. By default it should work with 'Any' option. So is it something that will be addressed in your component or there is any other option to make it work. Please let us know. nagboatw 4/21/2021 10:00:01 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged ultimate sftp sftp or ask your own question.