i have tried to do a conncetion in c# (visual studio 2012) using this code that give an error
protected Rebex.Net.IFtp _ftpClient;
public override void Connect()
{
Sftp _sftp = (Sftp)_ftpClient;
try
{
Task connect = _sftp.ConnectAsync(_params.HOST,
_params.PORT);
while (!connect.IsCompleted)
{
Thread.Sleep(1);
}
if (connect.IsFaulted)
throw connect.Exception;
}
finally
{
}
but ConnectAsync give me this error:
Key exchange failed. Server signature is not valid
why?
i'm using rebex: Rebex.Sftp.dll, v3.0.4981.0
thanks a lot