Hi,
I tried to connect to SFTP with password and connection failed ,why ?
try
{
using (Sftp client = new Sftp())
{
//Set the licence Key
ComponentPro.Licensing.Common.LicenseManager.SetLicenseKey(ConstantsHelper.ComponentProLicenseKey);
//Connect to the SFTP server.
client.Connect(serverName, serverPort);//failed here code not continue
// Authenticate.
client.Authenticate(userName, password);
}
}
catch (Exception ex)
{
_logger.Error("Sftp with password is not valid", ex);
}