0 votes
by (200 points)
edited

Hi, i'm getting sometimes an exception Rebex.Net.SshException: The operation was not completed within the specified time limit. What could I do to prevent this error?

Thanks in advance.

Hier is the Log-File:

2011-10-04 15:32:24.665 Opening log file.
2011-10-04 15:32:24.665 INFO Sftp(1) Info: Connecting to xx.xx.xx.xx:22 using Sftp 2.0.4086.0.
2011-10-04 15:32:24.790 DEBUG Sftp(1) SSH: Server is 'SSH-2.0-OpenSSH_5.0p1+sftpfilecontrol-v1.2-hpn13v1'.
2011-10-04 15:32:24.790 INFO Sftp(1) SSH: Negotiation started.
2011-10-04 15:32:24.822 DEBUG Sftp(1) SSH: Group exchange.
2011-10-04 15:32:24.837 DEBUG Sftp(1) SSH: Negotiating key.
2011-10-04 15:32:24.947 DEBUG Sftp(1) SSH: Validating signature.
2011-10-04 15:32:24.962 INFO Sftp(1) SSH: Negotiation finished.
2011-10-04 15:32:24.962 INFO Sftp(1) Info: Server: SSH-2.0-OpenSSH_5.0p1+sftpfilecontrol-v1.2-hpn13v1
2011-10-04 15:32:24.962 INFO Sftp(1) Info: Fingerprint: xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
2011-10-04 15:32:24.962 INFO Sftp(1) Info: Cipher info: SSH 2.0, DiffieHellmanGroupExchangeSHA1, DSS, aes256-ctr/aes256-ctr, SHA1/SHA1
2011-10-04 15:32:34.712 DEBUG Sftp(1) SSH: Allowed authentication methods: publickey, password, keyboard-interactive, hostbased.
2011-10-04 15:32:34.712 DEBUG Sftp(1) SSH: Trying password authentication for 'xxxxxx'.
2011-10-04 15:33:35.713 ERROR Sftp(1) SSH: Rebex.Net.SshException: The operation was not completed within the specified time limit.
   at Rebex.Net.SshSession.BXQTfX(Int32 )
   at Rebex.Net.SshSession.AePCoRZ(Byte[]& )
   at Rebex.Net.SshSession.cDtmAOZ(cMbfbTZ , Object[] )
   at Rebex.Net.SshSession.CFLiXJ(ANiLIV )
   at Rebex.Net.SshSession.CdWqMB()
   at Rebex.Net.SshSession.bcZOhz(String , String )
   at Rebex.Net.SshSession.cCIjvV(String , String , SshPrivateKey , SshGssApiCredentials )
2011-10-04 15:33:35.713 ERROR Sftp(1) Info: Rebex.Net.SshException: The operation was not completed within the specified time limit.
   at Rebex.Net.SshSession.BXQTfX(Int32 )
   at Rebex.Net.SshSession.AePCoRZ(Byte[]& )
   at Rebex.Net.SshSession.cDtmAOZ(cMbfbTZ , Object[] )
   at Rebex.Net.SshSession.CFLiXJ(ANiLIV )
   at Rebex.Net.SshSession.CdWqMB()
   at Rebex.Net.SshSession.bcZOhz(String , String )
   at Rebex.Net.SshSession.cCIjvV(String , String , SshPrivateKey , SshGssApiCredentials )
   at Rebex.Net.SshSession.Authenticate(String userName, String password, SshPrivateKey privateKey)
   at Rebex.Net.Sftp.Login(String userName, String password, SshPrivateKey privateKey)
Applies to: Rebex SFTP

1 Answer

0 votes
by (143k points)
edited

This looks like the server suddenly stopped responding during the authentication phase. Do you have access to the server log as well? It is possible there is some issue at the server (such as inability to authenticate the user because an authentication server was down) and if this is the case, it isn't possible to tell from the client side. You can also increase Rebex SFTP's 60-second time limit using Sftp object's Timeout property (the value is in miliseconds).

...