Cannot connect to FTPS server

Advertisement

martyg@zoeller.com
Joined:
Posts:
2
Location:
Louisville, Ky.

Cannot connect to FTPS server

I am trying to connect to a remote server using FTPS. I read online that it can be done using WinSCP but I am unable to make the connection. I am running a .NET Core console application. My code and the error message are below. Thank you in advance for any help you might offer.

Error Message:
Connection failed. Timeout detected. (control connection) Connection failed. You cannot connect to an SFTP server using an FTP protocol. Please select the correct protocol.
SessionOptions sessionOptions = new SessionOptions)
{
    Protocol = Protocol.Ftp,
    HostName = "xxxxx.com",
    UserName = "yyyyyyy",
    Password = "************",
    FtpSecure = FtpSecure.Explicit,
    PortNumber = 30022,
};
session.Open(sessionOptions);   // This is where I get the error

Reply with quote

Advertisement

martyg@zoeller.com

Cannot connect to FTPS server

Thank you for your response. You are right. I was fooled because the documentation I received from the company we are trying to send the information to said it was FTPS when in fact it was SFTP. I have made the change and it is working now.

Reply with quote

Advertisement

You can post new topics in this forum