I am using this code to attempt to establish a FTP connection to a Windows FTP Service
FtpClient client = new FtpClient(ip, user, password);
client.ConnectTimeout = 600000;
client.ReadTimeout = 60000;
client.EncryptionMode = FtpEncryptionMode.Implicit;
client.SslProtocols = System.Security.Authentication.SslProtocols.Tls;
client.DataConnectionType = FluentFTP.FtpDataConnectionType.PASV;
client.ValidateAnyCertificate = true;
client.Connect();
In a windows machine, the connection is stablished correctly, but from my Ubuntu machine it cannot be established, i always get the error
"error:141E70BF:SSL routines:tls_construct_client_hello:no protocols available"
How can i make this work ?
============= UPDATE
I tried the AutoDetect method of the FTPClient but the method does not retrieve any profile
Also the AutoConnect method seems to connect but when i try to get the listing of a folder an error arises that the profiles requires SSL
When i enable the tracing for the client i get this output in the log:
# Connect()
Status: Connecting to server:21
Response: 220-Microsoft FTP Service
Response: 220 ************************************************************
Status: Detected FTP server: WindowsServerIIS
Command: AUTH TLS
Response: 234 AUTH command ok. Expecting TLS Negotiation.
Status: Disposing FtpSocketStream...
Error: FTPS Authentication Failed