LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ftp command hangs with:227 Entering Passive Mode (10,119,98,125,4,12). (https://www.linuxquestions.org/questions/linux-software-2/ftp-command-hangs-with-227-entering-passive-mode-10-119-98-125-4-12-a-929412/)

dannynjust 02-15-2012 01:51 AM

ftp command hangs with:227 Entering Passive Mode (10,119,98,125,4,12).
 
i just install vaftpd on a AWS instance,below is my config, and i also opened the port 21 20 1024-1048, when i connect with filezilla, everything is fine, but when i am using the ftp command , it just hangs after the dir command with:227 Entering Passive Mode (10,119,98,125,4,12).
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048
port_enable=YES
pasv_address=10.119.98.125


Edit: i do get an message when using fielzilla :
Quote:

Server sent passive reply with unroutable address. Using server address instead.

lithos 02-15-2012 03:32 AM

Quote:

Originally Posted by dannynjust (Post 4602690)

... and i also opened the port 21 20 1024-1048 ...

Entering Passive Mode (10,119,98,125,4,12)


# pasv_address=10.119.98.125

This is fine, as your pasv port is designated to 10.119.98.125 port 1036 (...4,12 = 4x256 + 12)

Try to # comment the marked line to disable it in vsftpd (the Address will be taken from vsftpd running daemon)
and try to temporarily disable the firewall when you're testing the connection, to see if it's hanging because of it.

MCD555 02-15-2012 09:06 AM

Also, are you pointing the 10.119.95.125 also for data connection (i.e. that is the server IP you are pointing to)?
You could also try, from command line, to use the EPSV command instead of PASV (the server just give you the port to use to set up the data connection).

Last, did you also try the connection directly from the server (loopback)?

Hope this helps!


All times are GMT -5. The time now is 11:01 PM.