I am having problems connecting to a server and running any commands with lftp. I must run passive mode because of the firewalls on the client and remote servers. ncftp has no problem getting through and running commands, but for some reason I do have the problem with lftp. The following is the command that I am running and the results that I get. The last few lines will keep repeating adding 1 to the port each time. Hopefully someone can help me to get this to work. I am trying to setup a mirror and the remote server is an older SNAP server. So I can't ssh/telnet into it and can't change the ftp daemon or configuration for the ftp daemon that it is using.
These are the extra commands that I have in my /etc/lftp.conf. I have tried it without them and get the same results.
set ftp:list-options -a
set ftp:fix-pasv-address on
set ftp:passive-mode on
set ftp:verify-port on


I am running Lftp Version 3.0.12 on RHEL ES 3

#>lftp -d -u Administrator,password xxx.xxx.xxx.xxx
lftp [EMAIL PROTECTED]:~> ls
---- Connecting to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 21
<--- 220 Service ready for new user.
---> FEAT
<--- 530 Not logged in.
---> USER Administrator
<--- 331 User name okay, need password.
---> PASS mypasswd
<--- 230 User logged in, proceed.
---> FEAT
<--- 502 Command not implemented.
---> PWD
<--- 257 "/" is your working directory.
---> PASV
<--- 227 Entering Passive Mode (xxx,xxx,xxx,xxx,17,18).
---- Connecting data socket to (xxx.xxx.xxx.xxx) port 4370
---> LIST -a
<--- 450 Data transfer not implemented for client default data port. Need 'PORT' command first.
---- Closing data socket
---> PASV
<--- 227 Entering Passive Mode (xxx,xxx,xxx,xxx,17,12).
---- Connecting data socket to (xxx.xxx.xxx.xxx) port 4371
---> LIST -a
<--- 450 Data transfer not implemented for client default data port. Need 'PORT' command first.
---- Closing data socket
---> PASV
<--- 227 Entering Passive Mode (xxx,xxx,xxx,xxx,17,20).
---- Connecting data socket to (xxx.xxx.xxx.xxx) port 4372
---> LIST -a
<--- 450 Data transfer not implemented for client default data port. Need 'PORT' command first.
---- Closing data socket
---> PASV
<--- 227 Entering Passive Mode (xxx,xxx,xxx,xxx,17,21).
---- Connecting data socket to (xxx.xxx.xxx.xxx) port 4373
---> LIST -a
<--- 450 Data transfer not implemented for client default data port. Need 'PORT' command first.
---- Closing data socket



Thanks Steve



Reply via email to