I'm using this library with C# to connect and upload files to a server: https://www.nuget.org/packages/CoreFtp/
I'm able to connect to FTP sites, but attempts made with SFTP respond with a connection timeout.
Anyone have an example of what to do when establishing a connection with SFTP?
Here's an example of what I'm doing:
using (var ftpClient = new FtpClient(new FtpClientConfiguration
{
Host = FTPUrl,
Username = FTPUser,
Password = FTPPassword,
Port = FTPPort, // using port 21 for ftp, and port 22 for sftp
EncryptionType = FtpEncryption.Implicit,
IgnoreCertificateErrors = true
}))
{
await ftpClient.LoginAsync();
// do something with ftp client
}