LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-31-2004, 09:20 PM   #1
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Rep: Reputation: 31
lftp Problem / Question


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.

Last edited by LinuxGeek; 11-01-2004 at 03:21 PM.
 
Old 11-01-2004, 04:14 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You're turning passive mode *off* in your client.
Using set passive-mode on would probably be a better idea.


Håkan
 
Old 11-01-2004, 03:22 PM   #3
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Original Poster
Rep: Reputation: 31
Sorry. I meant that you can't connect to it using PASV mode. I modified the original post. Any ideas?
 
Old 11-01-2004, 10:44 PM   #4
mousebubble
LQ Newbie
 
Registered: Feb 2004
Location: Ohio
Distribution: Ubuntu
Posts: 16

Rep: Reputation: 0
Are you behind a firewall? Looks like something is blocking the remote server's data port. That's the problem with active ftp... too bad you can't use passive.
 
Old 11-02-2004, 04:18 AM   #5
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Original Poster
Rep: Reputation: 31
Yes. I'm behind a firewall. I'm actually behind 2 firewalls. The first one is the default one that comes with Alcatel's SpeedTouch 510 and the other one is one I have on my machine. But all my firwall does is block any connection attempts to my machine. However, I'm able to initiate connections with anyone. I don't have problems doing things such as ftping files, using bit torrent, using eMule, etc.
 
Old 11-02-2004, 10:55 PM   #6
mousebubble
LQ Newbie
 
Registered: Feb 2004
Location: Ohio
Distribution: Ubuntu
Posts: 16

Rep: Reputation: 0
afaik, until you do the ls you are still talking on port 21, which is a connection you initiated. once you do the ls command the server talks back from port 20 connecting to you on some port greater than 1024 (actually port 47021 from your first post).
Quote:
But all my firwall does is block any connection attempts to my machine.
in active ftp the data channel communication is a new connection attempt to your machine from the ftp server. not sure if this is your problem, but it gives you something to look at. if i were you i would check the firewall logs to see if you are blocking your own ftp.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lftp problem bipins1979 Linux - General 1 06-21-2006 10:20 AM
Problem mirroring with lftp Deathspawner Linux - Software 1 11-22-2005 02:25 PM
LFTP , mget question sopiaz57 Linux - General 1 09-03-2004 12:09 PM
lftp HELP knappster Linux - Software 2 08-03-2004 10:34 AM
about lftp oskernel Linux - Software 1 10-29-2003 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration