Seems like lftp doesn't handle FEAT sequence correctly when logging on to BlackMoon and RaidenFTPd. Please see the log from lftp and SmartFTP below. I guess it's the SYST command? Cheers.
lftp :~> o ftps://upload:[EMAIL PROTECTED]:2121/ ---- Resolving host address... ---- 1 address found dns cache hit ---- Connecting to 111.111.111.111 (111.111.111.111) port 2121 Certificate depth: 0; subject: /CN=Raiden; issuer: /CN=Raiden WARNING: Certificate verification: self signed certificate <--- 220 Please enter your login name now. ---> FEAT <--- 500 FEAT is not implemented. ---> USER upload <--- 331 Password required for upload . ---> PASS upload; <--- 230 User upload logged in. ---> PWD <--- 257 "/" is current directory ---> PBSZ 0 <--- 200 PBSZ Command OK. Protection buffer size set to 0. cd ok, cwd=/ lftp [EMAIL PROTECTED]:/> 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]:/> [09:55:52] Resolving host name ftp.smartftp.com... [09:55:52] Connecting to (ftp.smartftp.com) -> IP: 213.144.155.6 PORT: 21 [09:55:52] Connected to (ftp.smartftp.com) -> Time = 131ms [09:55:52] Socket connected waiting for login sequence. [09:55:52] 220-SmartFTP Server [09:55:52] 220 service ready [09:55:52] AUTH TLS [09:55:52] 234 Negotiating secure session... [09:55:52] Connected. Exchanging encryption keys... [09:55:53] Session Cipher: 128 bit RC4 [09:55:53] SSL encrypted session established. [09:55:53] PBSZ 0 [09:55:53] 200 Command okay. [09:55:53] USER anonymous [09:55:53] 331 User name okay, need password. [09:55:53] PASS (hidden) [09:55:53] 230 User logged in, proceed. [09:55:53] SYST [09:55:53] 215 UNIX Type: L8 [09:55:53] FEAT [09:55:53] 211-Extensions supported: [09:55:53] SIZE [09:55:53] REST [09:55:53] MDTM [09:55:53] AUTH TLS [09:55:53] AUTH SSL [09:55:53] PBSZ [09:55:54] PROT [09:55:54] CLNT [09:55:54] SSCN [09:55:54] XCRC [09:55:54] EPRT [09:55:54] EPSV [09:55:54] MLST type*;size*;modify*;create*;perm*;unix.owner;unix.group;windows.lastaccesstime; [09:55:54] 211 END [09:55:54] Detected Server Software: BlackMoon [09:55:54] CLNT SmartFTP 1.0.982 [09:55:54] 200 Noted. [09:55:54] PWD [09:55:54] 257 "/" is the current directory [09:55:54] CWD /SmartFTP [09:55:54] 250 Requested file action okay, completed. [09:55:54] PWD [09:55:54] 257 "/SmartFTP" is the current directory [09:55:55] Cached directory reloaded. [09:57:57] Resolving host name 111.111.111.111... [09:57:57] Connecting to (111.111.111.111) -> IP: 111.111.111.111 PORT: 2121 [09:57:57] Connected. Exchanging encryption keys... [09:57:58] Session Cipher: 128 bit RC4 [09:57:58] SSL encrypted session established. [09:57:58] Connected to (111.111.111.111) -> Time = 340ms [09:57:58] Socket connected waiting for login sequence. [09:57:58] 220 Please enter your login name now. [09:57:58] USER upload [09:57:58] 331 Password required for upload . [09:57:58] PASS (hidden) [09:57:59] 230 User upload logged in. [09:57:59] SYST [09:57:59] 215 UNIX Type: L8 , CP:1252 [09:57:59] FEAT [09:57:59] 211-Extensions supported: [09:57:59] SIZE [09:57:59] MDTM [09:57:59] MDTM YYYYMMDDHHMMSS filename [09:57:59] LIST -laT [09:57:59] STAT -laT [09:57:59] MLST type*;lang*;size*;modify*;create*;UNIX.mode*;UNIX.owner*;UNIX.group*; [09:57:59] MLSD [09:57:59] REST STREAM [09:57:59] XCRC filename;start;end [09:57:59] XMD5 filename;start;end [09:57:59] TVFS [09:57:59] CLNT client_type [09:57:59] LANG EN;FR;JA;DE;IT;SV;ES;RU;ZH-TW;ZH-CN [09:57:59] AUTH SSL [09:57:59] AUTH TLS [09:57:59] PROT [09:57:59] PBSZ [09:57:59] SSCN [09:57:59] UTF8 [09:57:59] 211 END [09:57:59] Detected Server Software: RaidenFTPd [09:57:59] CLNT SmartFTP 1.0.982 [09:57:59] 213 client type set to SmartFTP 1.0.982. [09:57:59] OPTS UTF8 ON [09:57:59] 220 UTF8 OPTS ON. [09:57:59] PBSZ 0 [09:57:59] 200 PBSZ Command OK. Protection buffer size set to 0. [09:57:59] PWD [09:57:59] 257 "/" is current directory [09:58:00] SSCN OFF [09:58:00] 200 SSCN:SERVER METHOD [09:58:00] TYPE A [09:58:00] 200 Type set to ASCII. [09:58:00] PROT P [09:58:00] 200 PROT P accepted. [09:58:00] PASV [09:58:00] 227 Entering Passive Mode (111,111,111,111,24,137) [09:58:00] MLSD [09:58:00] Opening data connection IP: 111,111,111,111,24,137 PORT: 6281. [09:58:00] 150 Opening ASCII data connection for ls / using SSL/TLS. [09:58:00] Connected. Exchanging encryption keys... [09:58:00] Session Cipher: 128 bit RC4 [09:58:00] SSL encrypted session established. [09:58:01] 35472 bytes received successfully. (34.64 KB/s) (00:00:01). [09:58:01] 226 Transfer finished successfully. Data connection closed . [09:58:02] PASV [09:58:02] 227 Entering Passive Mode (111,111,111,111,24,138) [09:58:02] MLSD [09:58:02] Opening data connection IP: 111,111,111,111,24,138 PORT: 6282. [09:58:02] 150 Opening ASCII data connection for ls / using SSL/TLS. [09:58:02] Connected. Exchanging encryption keys... [09:58:02] Session Cipher: 128 bit RC4 [09:58:02] SSL encrypted session established. [09:58:03] 35472 bytes received successfully. (34.64 KB/s) (00:00:01). [09:58:03] 226 Transfer finished successfully. Data connection closed . --- "Alexander V. Lukyanov" <[EMAIL PROTECTED]> wrote: > On Wed, May 26, 2004 at 08:45:47AM -0700, Roboco > Sanchez wrote: > > Thanks for the patch. But it still doesn't work. > > Please see the log below. I tested FXP from > BlackMoon > > to Serv-U 4.x. It works with SmartFTP client. In > > Serv-U, it clearly tells you whether the data > channel > > is encrypted. > > Do these ftp servers report SSCN in FEAT reply? > > BTW, to see which server sent what, turn on context > in debug: > > debug -c > > -- > Alexander. __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/
