On Wed, Jul 02, 2003 at 07:06:57AM -0500, Jammie Hall wrote:
> Okay, I tried this and yes it was helpful. However, when I attempted to perform
> the 'ls' the negotiation took several seconds then I got the message '****Peer
> closed connection'
> '------Closing control socket'
> I know this has something to do on their end. In speaking to them yesterday,
> they want passive mode ftp. I need to connect, authenticate, and then transmit
> via a separate port. (connect at 21, authenticate/ data transmit 25002)
>
> Can lftp do this?
> If so, how do I configure it to do this?
Yes, it can. But passive mode is the default in lftp starting with 2.2.0
version. It is controlled by:
set ftp:passive-mode on
And the port number for passive mode is assigned by server, lftp does not
have control over that.
Maybe they actually want active mode. Then lftp has control over the port
number on local side:
set ftp:passive-mode off
set ftp:port-range 25002-25002
--
Alexander.