I am trying to upload files to a linux server but I am getting an error saying:
\"Unable to connect to the remote server
\". I dont know if my code is wrong or the
What you are trying to do here is to establish a FTPS connection which is not a SFTP connection. The EnableSsl
option only activates FTP over TLS (so FTPS). It uses Port 21 to connect to the server.
If you really have activated SFTP in FileZilla, you have to use an SSH connection on port 22 to connect to the server (SFTP = SSH File Transfer Protocol). The easiest method to obtain this should be using SharpSSH.
You can also take a look into this question.