Hi,
Using Rebex.Net.Sftp on a Windows Mobile device it works most of the time. We are calling this (cut down example):-
Sftp sftp = new Sftp();
sftp.Connect(remoteHost, Sftp.DefaultPort, sshparams);
but often we get this error:-
Rebex.Net.SftpException: Key exchange failed. ---> Rebex.Net.SshException: Key exchange failed. ---> System.Security.Cryptography.CryptographicException: Unable to acquire context (-2146893795).
at fSAA8Z.4J1Sh.guGYU()
at Rebex.Security.Cryptography.CryptoHelper.242mil(1ZVxoO , 1ZVxoO , 1ZVxoO )
at Rebex.Security.Cryptography.CryptoHelper.GenerateDiffieHellmanKeys(Byte[] G, Byte[] P, Byte[]& privateKey, Byte[]& publicKey)
at gbMKS.qyK1..ctor(Byte[] G, Byte[] P)
at gbMKS.1iQOSNZ..ctor(Byte[] G, Byte[] P)
We repeatly try and connect and it does not work but the next day it seems to work.
Can you help with what is causing this error?
Thanks very much.