When trying to connect to the remote server using Filezilla to transfer files, sometimes you might experience an ECONNREFUSED Error that means that two computers refused to establish a hand shake.
Sometimes you get an error saying "Cannot establish an FTP connection to an SFTP server. Please select proper protocal. If this is the case then select FTP not SFTP as protocol in FileZilla
If you have permission issues, get access to your server and type: sudo chmod -R 777 FolderName. Remember this is not advisable in production environment.
Josh said:
Change the Port Number to 22 By default, the port number for secured file transfer protocol is 22. If you have a port connection number other than 22 may lead to the error message -could not connect to server in Filezilla. Hence, to resolve the issue, change the port number to 22 in FileZilla client software.