Strange. I just did an FTP login to an FTP server which calls itself Microsoft FTP Service in the greeting message. After getting the greeting message, I tried several times but was unable to do a simple ls command after having given lftp the URL, the username, and the password.
Next, I used set ftp:fix-pasv-address no to set an lftp variable. It started working.
The reason why I tried set ftp:fix-pasv-address no is because lftp in debug mode was reporting it had found multiple valid ports. I'm not sure, but I seem to recall that each port had a unique IP address as well.
Since I was getting multiple valid ports back for passive mode, I assumed at that point that this was a NAT (network address translation) problem.
Therefore, I tried set ftp:fix-pasv-address no under the assumption that the multiple valid ports were really lftp trying to fix NAT problems.
After deciding that I was going to have to use set ftp:fix-pasv-address no from now on, I tried lftp without set ftp:fix-pasv-address no to see if I could go back and document the problem. The problem has disappeared! I seem to be able to log into this particular FTP server without using the set ftp:fix-pasv-address no command.
So now I have no idea what is going on. Oh well.
Ed Abbott
No comments:
Post a Comment