mauler / docker-simple-ftp-server

13 stars 24 forks source link

Connection failed... #2

Open Spritekin opened 6 years ago

Spritekin commented 6 years ago

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 commented 5 years ago

Got the same issue as above.

cn-ml commented 3 years ago

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