Question: FTP Connection Refused
gravatar for renae.geier
14 months ago by
Milwaukee, WI
renae.geier40 wrote:

Hi everyone,

I am trying to connect to the Galaxy server in FileZilla and my connection keeps getting rejected and I cannot figure out why.

host:, username and password are the same as I use to log in to the galaxy website

This is the FileZilla readout, if anyone has any advice for me, it is greatly appreciated! I have 3 files over 2GB I need to upload and I'm stuck.

Status: Resolving address of
Status: Connecting to
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/" is the current directory
Command:    TYPE I
Response:   200 Type set to I
Command:    PASV
Response:   227 Entering Passive Mode (129,114,60,60,118,87).
Command:    MLSD
Error:  The data connection could not be established: ECONNREFUSED - Connection refused by server

Thanks! Renae

ftp galaxy • 1.5k views
ADD COMMENTlink modified 14 months ago by Nate Coraor3.2k • written 14 months ago by renae.geier40
gravatar for Nate Coraor
14 months ago by
Nate Coraor3.2k
United States
Nate Coraor3.2k wrote:

Is there a firewall at your site that might be interfering? It seems like something - either on the host or on that particular network - is blocking connections.

In order to make a passive FTP connection, the FTP client opens a connection to a control channel: port 21 in the case of Explicit FTPS or non-secure connections, port 990 in the case of Implicit FTPS. After authenticating, the client attempts to switch to passive mode - the PASV command. This instructs the FTP server on our side to create a random port (in our case, this will be between 30000 and 31000) for your client to connect to for data transfers. FileZilla attempts to get a directory listing from the data port with MLSD but times out when attempting to connect to the data port.

There could be multiple reasons for this, however, I suspect the reason is that some firewalls inspect traffic to (remote) port 21 and watch for the response to the PASV command so they can allow outbound traffic from the client to the data port returned by PASV (in this case IP: port: 118*256+87=30295). Since the connection becomes encrypted after issuing AUTH TLS, the firewall cannot read the PASV response and thus connections to the data port fail.

As a first step, please try connecting with Implicit FTPS documentation and see if you have the same result.

Also, do you get this message upon initially connecting (i.e. you are unable to connect at all) or after successfully connecting, when trying to upload?

ADD COMMENTlink written 14 months ago by Nate Coraor3.2k

YEP! I'm on a new work computer and there was a firewall I was unaware of. I got my files uploaded, thank you Nate!

ADD REPLYlink written 14 months ago by renae.geier40
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 169 users visited in the last hour