> Hi,
>
> We are using version 2.6.5 of lftp on a Red Hat 7.1 machine to
> automaticly ftp some files to an IBM mainframe. This mainframe has a ftp
> server that only allows active ftp connections. Now we have a problem
> setting the lftp client to active. Our script looks like this :
>
> set ftp:passive-mode off
> open mainframe
> user xxxx xxxxx
> put file
> bye
>
> This doesn't work. The client stays in passive mode. Moving the "set"
> line to under the line "user" doesn't help. We tried to set
> ftp:passive-mode off in /etc/lftp.conf and in /root/.lftp/rc . Also we
> tried everything with the line set ftp:passive-mode no. Nothing helped.
> Any ideas ?

Hum... are you really sure?

I'm using version 2.6.6 there and:
[EMAIL PROTECTED]:~$ cat << EOF > test.lftp
> open sumarit
> user pixel xxxxxxxx
> set ftp:passive-mode off
> set ftp:ssl-allow off
> debug 9
> put somefile
> bye
> EOF
[EMAIL PROTECTED]:~$ lftp -f test.lftp
---- Connecting to sumarit (10.0.1.1) port 21
<--- 220 ProFTPD 1.2.5rc1 Server (Debian) [sumarit.nobis-crew.org]
---> USER pixel
<--- 331 Password required for pixel.
---> PASS xxxxxxxx
<--- 230 User pixel logged in.
---> PWD
<--- 257 "/home/pixel" is current directory.
---> TYPE I
<--- 200 Type set to I.
---> PORT 10,0,1,5,186,223
<--- 200 PORT command successful.
---> STOR somefile
<--- 150 Opening BINARY mode data connection for somefile.
---- Closing data socket
<--- 226 Transfer complete.
---> QUIT
---- Closing control socket
[EMAIL PROTECTED]:~$

I put the ftp:ssl-allow off to make sure it will be the same as you.
There, it obviously worked in active mode. Can you also put the debug 9
command in your script so we could see what's happening?


  Cheers,

  -- Nicolas Noble

Reply via email to