I'm trying to connect to an ftp site which requires that you don't connect to it using passive mode. So I did the following:
Code:
lftp ftp://username:password@10.0.0.25
---- Resolving host address...
---- 1 address found
lftp 10.0.0.25:~> set ftp:passive-mode off
If I do a 'cd' command, it logs in successfully.
Code:
---- Connecting to 10.0.0.25 port 21
<--- 220 Serv-U FTP Server v5.1 for WinSock ready...
---> FEAT
<--- 211-Extension supported
<--- CLNT
<--- MDTM
<--- MDTM YYYYMMDDHHMMSS[+-TZ];filename
<--- SIZE
<--- SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG
<--- REST STREAM
<--- XCRC filename;start;end
<--- MODE Z
<--- 211 End
---> CLNT lftp/3.0.5
<--- 200 Noted.
---> USER username
<--- 331 User name okay, need password.
---> PASS password
<--- 230 User logged in, proceed.
---> PWD
<--- 257 "/" is current directory.
---> CWD
<--- 250 Directory changed to /UPLOAD/cm152001/20oct2004
---> PORT 10,0,0,1,183,173
<--- 200 PORT Command successful.
However, it stays forever on the LIST command and finally says:
Code:
---> LIST
<--- 150 Opening ASCII mode data connection for /bin/ls.
<--- 426 Data connection closed, transfer aborted.
---- Closing data socket
I can cd without any problems, but when I try to ls, it takes forever and gives me the message above. Is there something I have to set up? I tried connecting using gftp and it also took forever trying to run the LIST command. Any ideas? Thanks for your time.