SftpClient Hangs on Connect()

Hi


With reference to this issue: <a href="https://forum.aspose.com/t/41502

The following code freezes on connect. No errors and apparently no time-out either (I left it for at least 30 minutes).

SftpClient client = new SftpClient();
client.Host = “sftp.XXXXX.co.za”;
client.Port = 22;
client.AuthenticationInfo = new AuthenticationInfo { UserName = “portfpre”, Password = “" };
client.Connect();

I can arrange to get the security credentials to you if necessary.

Note that I’ve also tried:
client.Connect(“sftp.XXXXXXX.co.za”, 22,
new AuthenticationInfo { UserName = “portfpre”, Password = "
” } );

When connecting via FileZilla, I do get a request to confirm that “host key” is trusted. But I don’t know how to send that through to your component.

Please help.

Many thanks

Ross

Hi Ross,

We are very sorry for your inconvenience.

Please try your scenario with last version of Aspose.Network for .NET v6.9.0 and feed us back with your results.

Please also note that Aspose.Network for .NET has been discontinued as it has not been commercially viable for us. You may please go through the policies for discontinued products on the following page,
http://www.aspose.com/corporate/purchase/policies/discontinued-products.aspx

Regards,