LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-14-2016, 12:46 PM   #1
melimeloclv
LQ Newbie
 
Registered: Dec 2016
Posts: 4

Rep: Reputation: Disabled
Question lftp


Hi all,
I am trying to use lftp to connect to a ftp server in ftps TLS

A first test is working fine by connecting to a simple FTP server (ftp.planet-work.com)
But i can't connect to another one (it works with filezilla for exemple)
prompt desperately print `myfile.log' at 0 (0%) [Logging in...]

Could you please help me ? an idea
thank you in advance

lftp
set ftps:initial-prot ""
set ftp:ssl-force true
set ftp:ssl-protect-data true
set ssl:verify-certificate no
open ftp.xxx.xx
login mylogin
Password: mypassword
debug
put myfile.log
---- Connecting to ftps.wke.es (194.224.54.186) port 21
<--- 220 Microsoft FTP Service
---> FEAT
<--- 211-Extended features supported:
<--- LANG EN*
<--- UTF8
<--- AUTH TLS;TLS-C;SSL;TLS-P;
<--- PBSZ
<--- PROT C;P;
<--- CCC
<--- HOST
<--- SIZE
<--- MDTM
<--- REST STREAM
<--- 211 END
---> AUTH TLS
<--- 234 AUTH command ok. Expecting TLS Negotiation.
---> LANG
`myfile.log' at 0 (0%) [Logging in...]
 
Old 12-14-2016, 12:53 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
When I try to connect, I do get a certification error. Is that related?

Code:
<--- 234 AUTH command ok. Expecting TLS Negotiation.
---> LANG
Certificate: CN=INTERSVC01.dmz.wke.es
 Issued by: CN=INTERSVC01.dmz.wke.es
WARNING: Certificate verification: Not trusted
WARNING: Certificate verification: certificate common name doesn't match requested host name ‘194.224.54.186’
 
Old 12-14-2016, 12:58 PM   #3
melimeloclv
LQ Newbie
 
Registered: Dec 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Unhappy

i don't know ...
 
Old 12-14-2016, 01:01 PM   #4
melimeloclv
LQ Newbie
 
Registered: Dec 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
set ssl:verify-certificate no

this permit to bypass the warning ...
but it still logging in
 
Old 12-15-2016, 09:06 AM   #5
melimeloclv
LQ Newbie
 
Registered: Dec 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Lightbulb

Hi,

I have obtain the good syntaxe by the owner of the ftps.

/usr/bin/lftp -e 'set net:reconnect-interval-base 60; set net:max-retries 5; set ftp:ssl-force true; set ftp:ssl-protect-data true; set ftp:ssl-auth TLS; set ftp:ssl-allow yes; set ftp:ssl-protect-listyes; set ftp:ssl-protect-fxp yes;ssl:verify-certificate false; put -c [mon fichie] –o [mon repertoire]; quit' -u 'user,password' 'server'

this works on linux, different distribution (debian and other)
but doesn't work in our principal provider

I think it is related to a proxy, firewall or something on the local network ....
Would you a have an idea ??

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] lftp mget julienfmills Linux - Software 5 07-22-2015 10:19 AM
regarding lftp santhosh-e Linux - Software 3 01-03-2012 10:22 AM
lftp mikeshn Linux - Software 11 07-20-2011 01:44 PM
lftp HELP knappster Linux - Software 2 08-03-2004 11:34 AM
about lftp oskernel Linux - Software 1 10-29-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration