> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Fix: Cannot establish FTP connection to an SFTP server in FileZilla
- URL: https://itsfoss.com/fix-establish-ftp-connection-sftp-server/
- Published: 2015-12-11T00:14:58.000Z
- Updated: 2023-05-28T10:54:56.000Z
- Description: If you connect to a SFTP server in FileZilla, you get a Critical error: Could not connect to server. Here’s why you and how to fix this error.
- Author: Abhishek Prakash
- Tags: Troubleshoot 🔬

The other day I had to connect to my web server. I [use FileZilla](https://itsfoss.com/filezilla-ubuntu/) for connecting to FTP servers. FileZilla is a free and open source GUI software that allows you to connect to an [FTP server in Linux](https://itsfoss.com/set-ftp-server-linux/).

When I entered the [hostname](https://itsfoss.com/change-hostname-ubuntu/) 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**

The error looks like this in the FileZilla interface.

![FileZilla Cannot establish FTP connection to an SFTP server](https://itsfoss.com/content/images/wordpress/2015/12/FileZilla_FTP_SFTP_Problem_1.jpeg)

Let me tell you why you see this error and what you can do to 'fix' it.

## Fixing ‘Critical error: Could not connect to server’ in Linux

By reading the error message itself made me realize my mistake. I was trying to establish an [FTP](https://en.wikipedia.org/wiki/File%5FTransfer%5FProtocol?ref=itsfoss.com) connection with an [SFTP](https://en.wikipedia.org/wiki/SSH%5FFile%5FTransfer%5FProtocol?ref=itsfoss.com) server. 

You see, [I had SFTP setup on the Linux server.](https://linuxhandbook.com/sftp-server-setup/?ref=itsfoss.com) 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 the FTP protocol.

### Solution for “Cannot establish FTP connection to an SFTP server”

The solution is simple. Use SFTP protocol instead of FTP. 

The one problem you might face is knowing how to change the protocol to SFTP. This is where I am going to help you.

In the FileZilla menu, go to **File->Site Manager**.

![FileZilla Site Manager](https://itsfoss.com/content/images/wordpress/2015/12/FileZilla_FTP_SFTP_Problem_2.jpeg)

In the Site Manager, go in General tab and select SFTP in Protocol. Also fill in the host server, port number, user password etc.

![Cannot establish FTP connection to an SFTP server](https://itsfoss.com/content/images/wordpress/2015/12/FileZilla_FTP_SFTP_Problem_3.png)

I hope you can handle things from here onward.

FileZilla is an excellent GUI tool for SFTP browsing. This tutorial will help you learn the [basics of FileZilla](https://itsfoss.com/filezilla-ubuntu/).

[Using FileZilla for Connecting to SFTP Server Via GUIIf you ask the geeky sysadmins, they will swear by rsync or scp commands for transferring files between remote server and local system. However, those are command line methods and not everyone feels comfortable. Thankfully, there are some GUI tools available that let you transfer files to…![](https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png)It's FOSSPratham Patel![](https://itsfoss.com/content/images/wordpress/2022/01/install-filezilla-on-ubuntu.png)](https://itsfoss.com/filezilla-ubuntu/)

I hope this quick tutorial helped you to fix “Cannot establish FTP connection to an SFTP server. Please select proper protocol.” problem. 

If you have questions or suggestions, do let me know. If this article helped you fix the problem, I won’t mind a simple ‘thanks’ comment :)