Alexander V. Lukyanov | 2 Apr 18:07 2010
Picon

Re: LFTP and Microsoft IIS

On Wed, Mar 31, 2010 at 04:46:35PM -0700, Andrew Athan wrote:
> I am having a really really hard time getting lftp to do a secure file
> transfer against an IIS FTPS server.  I am also having a hard time
> following the code.

Please provide a debug log of lftp.

--

-- 
   Alexander.

Perl Whore | 5 Apr 00:00 2010
Picon

Bug: pget command is killed upon chunk completion when xfer:verify is enabled.

I've set mirror command to use pget, which splits files into chunks.
But when xfer:verify is enabled, it checks the hash as soon as a chunk
completes, and then it kills the rest of the transfers and leaves only
a single thread running.

Expected behaviour: xfer:verify-command should be executed only after
all the chunks complete, i.e., after the file transfer is completed.

Alexander V. Lukyanov | 5 Apr 10:16 2010
Picon

Re: LFTP and Microsoft IIS

I don't see debug logs in your message. Use `debug' command in lftp.

On Fri, Apr 02, 2010 at 12:39:13PM -0700, Andrew Athan wrote:
> Alexander:
> 
> Sure.  I suggest you also get a Linux system and attempt to connect to 
> your FTPS server from it using whatever method you desire, then let me 
> know the method and settings you used.  I'm sure we won't be the last 
> (and are probably not the first) client to want to connect via Linux, 
> and having such a known good example will be useful to everyone.  
> Whichever method you choose will be fine with us, even if it involves a 
> reasonable purchase of commercial FTP software.
> 
> What follows is the test script, and then the output, separated by 
> -------.  You'll notice it makes two attempts, with slightly different 
> lftp settings.  In once case LFTP doesn't seem to make an SSL connection 
> attempt, in the second it is apparently asking for a "PROT C" instead of 
> "PROT P"  I have not been able to find settings that are compatible with 
> the security policies on your servers!
> 
> I have also tried using curl, for example:
> 
> curl --insecure -2 --ftp-ssl --ftp-pasv -u etcq:mB8&g$ss 
> -T/var/eod/etcq/ETCQ_20100401_TRADE.txt ftp://64.15.218.149:21/IN/TRADE
> 
> I am seeking for you to provide me with a known good example of a Linux 
> or Unix system connecting to the FTPS site you provided.  I appreciate 
> your help.
> 
> A.
(Continue reading)

Diane Rolland | 6 Apr 18:28 2010

ls problems with differnt versions of lftp

Hello,

 

I have an ftp site that I’m trying to use with lftp.  I can connect to the site and get directory listings when using both FileZilla and lftp version 2.6.3.  I have two additional linux servers running lftp version 3.5.1.  I can make the connection, but on the 3.5.1 version I cannot do ls command.  It immediately gives:

**** Peer closed connection

---- Closing control socket

 

There is no firewall in place on either server. 

 

Servers I have running 2.6.3 as well as PC client running FileZilla can ls to the same server just fine.

 

I had searched various posts, and tried some suggestions, but with no success.  How can I troubleshoot and determine the settings I need to do a successful “ls” with version 3.5.1?

 

Thank you in Advance,

Diane

Daniel Fazekas | 6 Apr 19:23 2010
Picon

Re: ls problems with differnt versions of lftp

On Apr 6, 2010, at 18:28, Diane Rolland wrote:

> I cannot do ls command.
> It immediately gives:
> **** Peer closed connection
> ---- Closing control socket

See if

set ftp:passive-mode on

helps.

If it didn't, then execute the

debug

command before ls.

Diane Rolland | 6 Apr 20:43 2010

RE: ls problems with differnt versions of lftp

No change when
set ftp:passive-mode on

debug in front of ls gives:
lftp user <at> host.somedomain.com:~> debug
lftp user <at> host.somedomain.com:~> ls
---- Connecting to somedomain.com (XX.XX.XX.XX) port 21
<--- 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
<--- 220-You are user number 2 of 38 allowed.
<--- 220-Local time is now 11:41. Server port: 21.
<--- 220-This is a private system - No anonymous login
<--- 220-IPv6 connections are also welcome on this server.
<--- 220 You will be disconnected after 15 minutes of inactivity.
---> FEAT
<--- 211-Extensions supported:
<---  EPRT
<---  IDLE
<---  MDTM
<---  SIZE
<---  REST STREAM
<---  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
<---  MLSD
<---  ESTP
<---  PASV
<---  EPSV
<---  SPSV
<--- 211 End.
---> OPTS MLST type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid;
<--- 200  MLST OPTS
type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
---> USER user
**** Peer closed connection
---- Closing control socket
`ls' at 0 [Delaying before reconnect: 27]

Thanks for any assistance!!!
Diane

Daniel Fazekas | 7 Apr 10:52 2010
Picon

Re: ls problems with differnt versions of lftp

On Apr 6, 2010, at 20:43, Diane Rolland wrote:

> No change when
> set ftp:passive-mode on
> debug in front of ls gives:
> lftp user <at> host.somedomain.com:~> debug
> lftp user <at> host.somedomain.com:~> ls
> ---- Connecting to somedomain.com (XX.XX.XX.XX) port 21
> <--- 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
> ---> OPTS MLST type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid;
> <--- 200  MLST OPTS
> type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
> ---> USER user
> **** Peer closed connection
> ---- Closing control socket

Then it looks like it isn't really connected to requesting a directory listing, it doesn't get that far.
Your server drops the connection as soon as you try to log in, regardless of what command you might try to execute.

Are you sure there isn't some kind of an IP check on the server and that you are using the same settings as in the
working cases?

The same debug output from the working machine would let us compare and see if there are any differences.

You could also try
set ftp:ssl-force yes

Alexander V. Lukyanov | 7 Apr 15:02 2010
Picon

Re: Deleting entire directories does not work when hidden files are there

On Sat, Apr 03, 2010 at 03:02:16PM +0530, Perl Whore wrote:
> When a directory contains a hidden file, lftp is not able to delete
> the directory unless those files are manually deleted first. When I
> run rm -rf, it removes all the files except the hidden files.

Try `set ftp:list-options -a'.

--

-- 
   Alexander.

Daniel Fazekas | 9 Apr 00:23 2010
Picon

Re: ls problems with differnt versions of lftp

On Apr 9, 2010, at 00:06, Diane Rolland wrote:

> set ftp:ssl-force yes made no difference.  But here is debug 20 level on the client that can successfully
connect to the server:

It looks like your server requires TLS encryption yet it doesn't advertise AUTH TLS as supported in the FEAT reply.

Try to set both of these before connecting:

set ftp:use-feat no
set ftp:ssl-force yes

Diane Rolland | 9 Apr 00:41 2010

RE: ls problems with differnt versions of lftp

That works perfectly, THANKS!

-----Original Message-----
From: Daniel Fazekas [mailto:fdsoft <at> gmail.com] 
Sent: Thursday, April 08, 2010 5:23 PM
To: lftp <at> uniyar.ac.ru
Cc: Diane Rolland
Subject: Re: ls problems with differnt versions of lftp

On Apr 9, 2010, at 00:06, Diane Rolland wrote:

> set ftp:ssl-force yes made no difference.  But here is debug 20 level on
the client that can successfully connect to the server:

It looks like your server requires TLS encryption yet it doesn't advertise
AUTH TLS as supported in the FEAT reply.

Try to set both of these before connecting:

set ftp:use-feat no
set ftp:ssl-force yes


Gmane