The other day I had to connect to my web server. I use FileZilla for connecting to FTP servers. When I entered the hostname and password and tried to connect to the FTP server, it gave me the following error:
Error: Cannot establish FTP connection to an SFTP server. Please select proper protocol.
Error: Critical error: Could not connect to server
By reading the error message itself made me realize my mistake. I was trying to establish an FTP connection with an SFTP server. Clearly, I was not using the correct protocol (which should have been SFTP and not FTP).
As you can see in the picture above, FileZilla defaults to FTP protocol.
Solution for “Cannot establish FTP connection to an SFTP server”
Solution is simple. Use SFTP protocol instead of FTP. The one problem you might face is to know how to change the protocol to SFTP. This is where I am going to help you.
In FileZilla menu, go to File->Site Manager.
In the Site Manager, go in General tab and select SFTP in Protocol. Also fill in the host server, port number, user password etc.
I hope you can handle things from here onward.
I hope this quick tutorial helped you to fix “Cannot establish FTP connection to an SFTP server. Please select proper protocol.” problem.