Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection failed... #2

Open
Spritekin opened this issue Dec 13, 2017 · 2 comments
Open

Connection failed... #2

Spritekin opened this issue Dec 13, 2017 · 2 comments

Comments

@Spritekin
Copy link

Hi,
i run your server as:
sudo docker run -p 21:21 -ti --rm mauler/simple-ftp-server

When I connect using any client (curl, ft, filezilla, cyberduck) I just get disconnected or never really completing the connection. Not I use the defulat ftp:ftp user.

[I 2017-12-13 03:06:51] 192.168.16.190:64344-[] FTP session opened (connect)
[I 2017-12-13 03:06:52] 192.168.16.190:64344-[ftp] USER 'ftp' logged in.
[I 2017-12-13 03:06:53] 192.168.16.190:64344-[ftp] CWD /ftp-home 250
[I 2017-12-13 03:07:23] 192.168.16.190:64344-[ftp] FTP session closed (disconnect).
INFO:pyftpdlib:192.168.16.190:64344-[ftp] FTP session closed (disconnect).

It doesn't matter if I run locally or remotely, the connection is terminated. i.e. running as localhost:

$ docker run -p 11021:21 -it --rm mauler/simple-ftp-server
[I 2017-12-13 03:09:30] >>> starting FTP server on 0.0.0.0:21, pid=9 <<<
[I 2017-12-13 03:09:30] concurrency model: async
[I 2017-12-13 03:09:30] masquerade (NAT) address: None
[I 2017-12-13 03:09:30] passive ports: None
[I 2017-12-13 03:10:29] 172.17.0.1:43064-[] FTP session opened (connect)
[I 2017-12-13 03:10:29] 172.17.0.1:43064-[ftp] USER 'ftp' logged in.
[I 2017-12-13 03:10:30] 172.17.0.1:43064-[ftp] FTP session closed (disconnect).

$ curl ftp://ftp:ftp@localhost:11021/
curl: (8) Failed to connect to localhost port 11021: Connection refused

Am I doing something wrong?

@paalped
Copy link

paalped commented Jul 4, 2019

Got the same issue as above.

@cn-ml
Copy link

cn-ml commented Mar 7, 2021

Got the same issue

[I 2021-03-07 13:28:17] >>> starting FTP server on 0.0.0.0:21, pid=8 <<<
[I 2021-03-07 13:28:17] concurrency model: async
[I 2021-03-07 13:28:17] masquerade (NAT) address: None
[I 2021-03-07 13:28:17] passive ports: None
[I 2021-03-07 13:28:21] <myip>:50130-[] FTP session opened (connect)
[I 2021-03-07 13:28:22] <myip>:50130-[ftp] USER 'ftp' logged in.
[I 2021-03-07 13:28:42] <myip>:50130-[ftp] FTP session closed (disconnect).
[I 2021-03-07 13:28:42] <myip>:50134-[] FTP session opened (connect)
[I 2021-03-07 13:28:42] <myip>:50134-[ftp] USER 'ftp' logged in.
[I 2021-03-07 13:29:03] <myip>:50134-[ftp] FTP session closed (disconnect).

Client log from FileZilla says:

Status:	Connection established, waiting for welcome message...
Status:	Insecure server, it does not support FTP over TLS.
Status:	Logged in
Status:	Retrieving directory listing...
Status:	Server sent passive reply with unroutable address. Using server address instead.
Command:	MLSD
Response:	150 File status okay. About to open data connection.
Error:	Connection timed out after 20 seconds of inactivity
Error:	Failed to retrieve directory listing
Status:	Disconnected from server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants