Dnia 18-10-2007 o godz. 15:12 Alexander V. Lukyanov napisał(a): > On Wed, Oct 17, 2007 at 04:32:10PM +0200, Pavel qqqqqqqq wrote: > > ---> PBSZ 0 > > <--- 503 Bad sequence of command > > ---> PROT P > > <--- 503 Bad sequence of command > > For some reason the server does not accept PROT command, thus lftp does > not > know whether to encrypt data connection. Try > set ftps:initial-prot P > > -- > Alexander.
Hi Alexander, thanks for replay. I set up connection as you describe above. I know that this server is in passive mode implicit, data port 7200 to 7299. Belowe is debug: ---> PWD <--- 257 "/" is current directory. ---> PBSZ 0 <--- 503 Bad sequence of command ---> PASV <--- 227 Entering passive mode (10,66,33,59,28,47). ---- Connecting data socket to (10.66.33.59) port 7215 ---- Data connection established ---> LIST `ls' at 0 [Waiting for response...] and I can not list directory... I also tried active mode: lftp :~> set ftps:initial-prot P lftp :~> set ftp:passive-mode no lftp :~> open ftps://bet00589:[EMAIL PROTECTED]:6375 and I can list direcotory : ---> PWD <--- 257 "/" is current directory. ---> PBSZ 0 <--- 503 Bad sequence of command ---> PORT 10,81,128,250,128,209 <--- 200 Data port accepted ---> LIST <--- 150 Openning data connection. List started ---- Got EOF on data connection ---- Closing data socket total 2 drwxrwxrwx 0 --NA-- --NA-- 0 Sep 12 15:37 . d--------- 0 --NA-- --NA-- 0 Apr 25 10:44 .. <--- 226 List completed but can not put any file: lftp [EMAIL PROTECTED]:/> put test ---> PROT C <--- 503 Bad sequence of command ---> TYPE I <--- 200 Command okay ---> PORT 10,81,128,250,128,210 <--- 200 Data port accepted ---> ALLO 5 <--- 200 Command okay ---> STOR test <--- 150 Openning data connection. Start receiving 's119604.test',remote file is: test Certificate depth: 1; subject: /O=SOPRA/OU=CertificationUnit/CN=Sopra Sample CA; issuer: /O=SOPRA/OU=CertificationUnit/CN=Sopra Sample CA WARNING: Certificate verification: self signed certificate in certificate chain Certificate depth: 0; subject: /C=FR/ST=Hauts-de-Seine/L=Puteaux/O=SOPRA/OU=RDM-XFB/CN=Sopra Sample User 1; issuer: /O=SOPRA/OU=CertificationUnit/CN=Sopra Sample CA ---- Closing data socket <--- 226 File retreived successfully (network bytes 5/file bytes 5) 5 bytes transferred lftp [EMAIL PROTECTED]:/> ls ---> TYPE A <--- 200 Command okay ---> PORT 10,81,128,250,128,211 <--- 200 Data port accepted ---> LIST <--- 150 Openning data connection. List started Certificate depth: 1; subject: /O=SOPRA/OU=CertificationUnit/CN=Sopra Sample CA; issuer: /O=SOPRA/OU=CertificationUnit/CN=Sopra Sample CA WARNING: Certificate verification: self signed certificate in certificate chain Certificate depth: 0; subject: /C=FR/ST=Hauts-de-Seine/L=Puteaux/O=SOPRA/OU=RDM-XFB/CN=Sopra Sample User 1; issuer: /O=SOPRA/OU=CertificationUnit/CN=Sopra Sample CA <--- 226 List completed ---- Got EOF on data connection ---- Closing data socket total 2 drwxrwxrwx 0 --NA-- --NA-- 0 Sep 12 15:37 . d--------- 0 --NA-- --NA-- 0 Apr 25 10:44 .. Any idea? Thanks in advance! ---------------------------------------------------- Czaruje smakiem, zapachem i kolorem. Książka Magdy Gessler już w księgarniach! Zobacz: http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fprzepis.html&sid=65
