Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot run ls after succesfull login to FTP server

Status
Not open for further replies.

pob579

IS-IT--Management
May 20, 2005
5
0
0
CA
Hi,
I have a weird problem.
From LAN with private addressing I can successfully login to FTP server (that probably is behind a firewall too).
But when I run "ls" command a connections hangs.
I can work with many others ftp servers during years from our LAN. And never had a problem
I have two firewalls Border Manager 3.0 (all client pc's
are going through).
My workstation goes to Netscreen firewall without proxy.
I have the same problem when trying to "ls" through both firewalls (to this particular ftp server running U-Ftp v.4.1
I can login and run ls from my home LAN through Linksys cable router and from public side of our business LAN.

Any guesses?

Thanks.
Michael.
 
Here is the output of ftp client

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Documents and Settings\Administrator>ftp
ftp> open sysacom.no-ip.com
Connected to sysacom.no-ip.com.
220 Serv-U FTP Server v4.1 for WinSock ready...
User (sysacom.no-ip.com:(none)): muxlab
331 User name okay, need password.
Password:
230 User logged in, proceed.
ftp> dir
200 PORT Command successful.
150 Opening ASCII mode data connection for /bin/ls.
 
I think you should set your client to work in PASV mode rather than PORT mode. As far as I remember, windows built-in ftp.exe does not support PASV mode, so you should get another ftp client (I'm using WS_FTP).
If you decide to try WS_FTP here are the steps to configure a connection:
1. Sites -> Add to sites
2. Follow the instructions in wizard until you reach "Host type" window, check the "Passive mode" box.

Hope that helps.
 
Hi (privet),
I found a client from which I can enable passive mode (cmd client FTPS)
It's easy to enable passive mode in IE too.
Tried both... not works.

Here is output from passive client ftps (at the end I run again Microsoft ftp.
May be you can suggest something else.
I also show "working" output from my home LAN.


C:\Documents and Settings\Administrator>ftps
ftp> open sysacom.no-ip.com
220 Serv-U FTP Server v4.1 for WinSock ready...
Connected to sysacom.no-ip.com.
User: muxlab
331 User name okay, need password.
Password: ******
230 User logged in, proceed.
ftp> ls
200 PORT Command successful.
Timed out waiting for connection from server.
ftp>
ftp>
ftp>
ftp> passive
Passive mode On .
ftp> ls
227 Entering Passive Mode (192,168,0,89,59,91)
Unable to connect to server: The connection timed-out. timeout=5
ftp> ascii
200 Type set to A.
ftp> ls
426 Transfer aborted.
ftp> bye
Draining: 227 Entering Passive Mode (192,168,0,89,59,98)
221 Goodbye!

C:\Documents and Settings\Administrator>ftps
ftp> open sysacom.no-ip.com
220 Serv-U FTP Server v4.1 for WinSock ready...
Connected to sysacom.no-ip.com.
User: muxlab
331 User name okay, need password.
Password: ******
230 User logged in, proceed.
ftp> ascii
200 Type set to A.
ftp> ls
200 PORT Command successful.
^C
C:\Documents and Settings\Administrator>ftp
ftp> open sysacom
Unknown host sysacom.
ftp> open sysacom.no-ip.com
Connected to sysacom.no-ip.com.
220 Serv-U FTP Server v4.1 for WinSock ready...
User (sysacom.no-ip.com:(none)): muxlab
331 User name okay, need password.
Password:
230 User logged in, proceed.
ftp> ls
200 PORT Command successful.
150 Opening ASCII mode data connection for /bin/ls.
Aborting any active data connections...
426 Data connection closed, transfer aborted.
ftp>


From home pc can run microsoft ftp or ftps (not passive)
but cannot connect from browser.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Admin>ftp
ftp> open
ftp> bye

C:\Documents and Settings\Admin>ftps
ftp> open sysacom.no-ip.com
220 Serv-U FTP Server v4.1 for WinSock ready...
Connected to sysacom.no-ip.com.
User: muxlab
331 User name okay, need password.
Password: ******
230 User logged in, proceed.
ftp> ls
200 PORT Command successful.
150 Opening ASCII mode data connection for /bin/ls.
BROMELIAD-08.ZIP
ftp: 18 bytes received in 0.19Seconds 0.09Kbytes/sec.
226 Transfer complete.









 
Do you HAVE TO use command line clients ? I do not trust Microsoft's ftp clients, not to mention they are extremely uncomfortable. I suggest you to download Ipswitch WS_FTP trial and see if it works. Use the instructions I gave in my previous post.
If that doesn't help we'll think some more :)
 
Hi,
from ws_ftp latest version:

Finding Host sysacom.no-ip.com ...
Connecting to 65.94.181.37:21
Connected to 65.94.181.37:21 in 0.020028 seconds, Waiting for Server Response
220 Serv-U FTP Server v4.1 for WinSock ready...
Host type (1): Serv-U
USER muxlab
331 User name okay, need password.
PASS (hidden)
230 User logged in, proceed.
Host type (I): Serv-U
PWD
257 "/" is current directory.
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,168,0,89,89,241)
connecting data channel to 192.168.0.89:89,241(23025)
Substituting connection address 65.94.181.37 for private address 192.168.0.89 from PASV
PORT 10,0,0,6,4,247
200 PORT Command successful.
LIST
150 Opening ASCII mode data connection for /bin/ls.

Hangs....


From old WS_FTP

WINSOCK.DLL: WinSock 2.0
WS_FTP95 LE 4.50 97.05.17, Copyright © 1992-1997 Ipswitch, Inc.
- -
connecting to 65.94.181.37 ...
Connected to 65.94.181.37 port 21
220 Serv-U FTP Server v4.1 for WinSock ready...
Host type (1): Serv-U
USER muxlab
331 User name okay, need password.
PASS (hidden)
230 User logged in, proceed.
CWD /pub/win32
550 /pub/win32: No such file or directory.
PWD
257 "/" is current directory.
Host type (I): Serv-U
PASV
227 Entering Passive Mode (192,168,0,89,87,138)
connecting to 192.168.0.89:22410
- -
connecting to 192.168.0.89 ...
! Can't connect to 192.168.0.89 - connection timed out
! connect: connection timed out
PORT 10,0,0,6,4,198
200 PORT Command successful.
LIST
150 Opening ASCII mode data connection for /bin/ls.
! Timer cancelled blocking call
! Accept error: Blocking call cancelled
! DoDirList failed 0
CWD /
426 Data connection closed, transfer aborted.
CWD /
250 Directory changed to /
PWD
250 Directory changed to /
PASV
257 "/" is current directory.
! Unable to parse info 257 "/" is current directory.
PORT 10,0,0,6,4,203
227 Entering Passive Mode (192,168,0,89,87,190)
LIST
200 PORT Command successful.
! DoDirList failed 0
CWD undecipherable
150 Opening ASCII mode data connection for /bin/ls.
PWD
257 "/" is current directory.
PASV
227 Entering Passive Mode (192,168,0,89,87,200)
connecting to 192.168.0.89:22472
- -
connecting to 192.168.0.89 ...
! Can't connect to 192.168.0.89 - connection timed out
! connect: error 5
PORT 10,0,0,6,4,206
426 Data connection closed, transfer aborted.
! port cmd failed.
! DoDirList returned 0

What's now? :))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top