Hello, I'm having some problem with lftp 3.0.3. It cannot list directory. The server is glftpd 1.32_Linux+TLS. I got the error "**** SSL connect: wrong version number" and "ls: Fatal error: SSL connect: wrong version number". But I can run commands like site time, site who no problem. No problem at all if I use lftp 2.6.12 it can list the directory. Please see the log below. This error also looks weird "**** AUTH TLS is not supported, using AUTH SSL instead". I also tested connecting to ftp.smartftp.com no problem with lftp 3.0.3. I'm on Windows XP SP1 running lftp at Command Prompt. I compiled lftp binaries myself under Cygwin on this machine. Any help would be appreciated. Cheers.
[D:\Temp]d:\Util\lftp.exe lftp :~> version Lftp | Version 2.6.12 | Copyright (c) 1996-2002 Alexander V. Lukyanov This is free software with ABSOLUTELY NO WARRANTY. See COPYING for details. Send bug reports and questions to <[EMAIL PROTECTED]>. lftp :~> debug 20 lftp :~> o ftp://test:[EMAIL PROTECTED]:12345/ ---- Resolving host address... ---- 1 address found lftp [EMAIL PROTECTED]:~> ls dns cache hit ---- Connecting to notmyserv.test.net (192.168.1.2) port 12345 <--- 220- xybnc - Copyright (c) opera99 2001 - 2004 <[EMAIL PROTECTED]> <--- 220 ftp.cdrom.com ready. ---> AUTH TLS <--- 234 AUTH TLS sucessful. Certificate depth: 0; subject: /CN=xybnc; issuer: /CN=xybnc WARNING: Certificate verification: self signed certificate WARNING: Certificate verification: certificate has expired ---> USER test <--- 331 Password required for test. ---> PASS passwd <--- 230 User test logged in. ---> PWD <--- 257 "/" is current directory. ---> PBSZ 0 <--- 200 PBSZ 0 successful ---> PROT P <--- 200 Protection set to Private ---> PRET LIST <--- 500 'PRET LIST ': Command not understood. ---> PASV <--- 227 Entering Passive Mode (192,168,1,2,43,178) ---- Connecting data socket to (192.168.1.2) port 11186 ---> LIST <--- 150 Opening BINARY mode data connection for directory listing. Certificate depth: 0; subject: /CN=xyz; issuer: /CN=xyz WARNING: Certificate verification: self signed certificate WARNING: Certificate verification: certificate has expired <--- 226- [Ul: 0.0MB] [Dl: 10250.2MB] [Speed: 2.19K/s] [Free: 10105MB] total 501 ---- Closing data socket drwxrwxrwx 19 TestX ADM 909 May 11 11:50 ARCHIVE <--- 226 [Section: ALL] [Credits: 14.6MB] [Ratio: Unlimited] copy: get hit eof copy: put confirmed store copy: get is finished - all done lftp [EMAIL PROTECTED]:/> quit ---> QUIT ---- Closing control socket [D:\Temp]lftp lftp :~> version Lftp | Version 3.0.3 | Copyright (c) 1996-2004 Alexander V. Lukyanov This is free software with ABSOLUTELY NO WARRANTY. See COPYING for details. Send bug reports and questions to <[EMAIL PROTECTED]>. lftp :~> debug 20 lftp :~> o ftp://test:[EMAIL PROTECTED]:12345/ ---- Resolving host address... ---- 1 address found dns cache hit ---- Connecting to notmyserv.test.net (192.168.1.2) port 12345 <--- 220- xybnc - Copyright (c) opera99 2001 - 2004 <[EMAIL PROTECTED]> <--- 220 ftp.cdrom.com ready. ---> FEAT <--- 211- Extensions supported <--- AUTH TLS <--- AUTH SSL <--- PBSZ <--- PROT <--- CPSV <--- MDTM <--- SIZE <--- SYST <--- RAIDEN_SUX <--- 211 END **** AUTH TLS is not supported, using AUTH SSL instead ---> AUTH SSL <--- 234 AUTH TLS sucessful. ---> USER test Certificate depth: 0; subject: /CN=xybnc; issuer: /CN=xybnc WARNING: Certificate verification: self signed certificate WARNING: Certificate verification: certificate has expired <--- 331 Password required for test. ---> PASS passwd <--- 230 User test logged in. ---> PWD <--- 257 "/" is current directory. ---> PBSZ 0 <--- 200 PBSZ 0 successful cd ok, cwd=/ lftp [EMAIL PROTECTED]:/> ls ---> PASV <--- 227 Entering Passive Mode (192,168,1,2,42,46) ---- Connecting data socket to (192.168.1.2) port 10798 ---> LIST <--- 150 Opening BINARY mode data connection for directory listing. **** SSL connect: wrong version number ---> ABOR ---- Closing aborted data socket ---- Closing control socket ls: Fatal error: SSL connect: wrong version number lftp [EMAIL PROTECTED]:/> quit [D:\Temp]type c:\cygwin\home\Administrator\.lftprc set ftp:fxp-force no set ftp:fxp-passive-source no set ftp:passive-mode on set ftp:ssl-allow yes set ftp:ssl-allow-anonymous no set ftp:ssl-auth TLS set ftp:ssl-force no set ftp:ssl-protect-data yes set ftp:ssl-protect-list yes set ftp:use-fxp yes [D:\Temp]lftp lftp :~> version Lftp | Version 3.0.3 | Copyright (c) 1996-2004 Alexander V. Lukyanov This is free software with ABSOLUTELY NO WARRANTY. See COPYING for details. Send bug reports and questions to <[EMAIL PROTECTED]>. lftp :~> debug 20 lftp :~> o ftp://anonymous:lftp@@ftp.smartftp.com/ ---- Resolving host address... ---- 1 address found dns cache hit ---- Connecting to ftp.smartftp.com (213.144.155.6) port 21 <--- 220-SmartFTP Server <--- 220 service ready ---> FEAT <--- 503 Bad sequence of commands. ---> AUTH TLS <--- 234 Negotiating secure session... ---> USER anonymous Certificate depth: 0; subject: /CN=smartftp.com/[EMAIL PROTECTED] com/O=SmartFTP/OU=HQ/L=\x00Z\x00\xFC\x00r\x00i\x00c\x00h/ST=ZH/C=CH; issuer: /CN =smartftp.com/[EMAIL PROTECTED]/O=SmartFTP/OU=HQ/L=\x00Z\x00\x FC\x00r\x00i\x00c\x00h/ST=ZH/C=CH WARNING: Certificate verification: unable to get local issuer certificate WARNING: Certificate verification: unable to verify the first certificate <--- 331 User name okay, need password. ---> PASS lftp@ <--- 230 User logged in, proceed. ---> PWD <--- 257 "/" is the current directory ---> PBSZ 0 <--- 200 Command okay. ---> PROT P <--- 200 Command okay. cd ok, cwd=/ lftp [EMAIL PROTECTED]:/> ls ---> PASV <--- 227 Entering Passive Mode (213,144,155,6,62,136) ---- Connecting data socket to (213.144.155.6) port 16008 ---> LIST <--- 150 File status okay; about to open data connection. Certificate depth: 0; subject: /CN=smartftp.com/[EMAIL PROTECTED] com/O=SmartFTP/OU=HQ/L=\x00Z\x00\xFC\x00r\x00i\x00c\x00h/ST=ZH/C=CH; issuer: /CN =smartftp.com/[EMAIL PROTECTED]/O=SmartFTP/OU=HQ/L=\x00Z\x00\x FC\x00r\x00i\x00c\x00h/ST=ZH/C=CH WARNING: Certificate verification: unable to get local issuer certificate WARNING: Certificate verification: unable to verify the first certificate <--- 226 Closing data connection. Transfer Complete (155 bytes) ---- Closing data socket drwx------ 1 user group 0 Dec 18 06:19 Common drwx------ 1 user group 0 Apr 30 02:27 SmartFTP copy: get hit eof copy: waiting for put confirmation copy: put confirmed store copy: get is finished - all done lftp [EMAIL PROTECTED]:/> __________________________________ Do you Yahoo!? Yahoo! Domains – Claim yours for only $14.70/year http://smallbusiness.promotions.yahoo.com/offer