`lftp` does not connect to FTPS (FTP over TLS) server but filezilla and ncftp yesFTP over SSL in AIX (UNIX)* not interpreted in ftp, lftp?Apache “RSA server certificate CN does not match server name” errorUsing 'lftp' as a FTPS (not SFTP) client on SuSE Linux ES 11`lftp` does not connect to FTPS (ftp over ssl)When FTP Requires FTP over TLS is it FTPS?lftp without pseudo-terminal (/dev/ptmx) devicesUbuntu - lftp will not connect to ftps site (Fatal error: gnutls_handshake: An unexpected TLS packet was received.)How to config HTTPS on Apache tomcat

Example of a relative pronoun

How can bays and straits be determined in a procedurally generated map?

Why is an old chain unsafe?

Japan - Plan around max visa duration

What defenses are there against being summoned by the Gate spell?

How to type dʒ symbol (IPA) on Mac?

What is the command to reset a PC without deleting any files

Could a US political party gain complete control over the government by removing checks & balances?

Copycat chess is back

How is this relation reflexive?

How to make payment on the internet without leaving a money trail?

The use of multiple foreign keys on same column in SQL Server

How can I fix this gap between bookcases I made?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

How does one intimidate enemies without having the capacity for violence?

Is Social Media Science Fiction?

Is there a minimum number of transactions in a block?

whey we use polarized capacitor?

Why are only specific transaction types accepted into the mempool?

What would happen to a modern skyscraper if it rains micro blackholes?

Banach space and Hilbert space topology

Patience, young "Padovan"

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

How do I create uniquely male characters?



`lftp` does not connect to FTPS (FTP over TLS) server but filezilla and ncftp yes


FTP over SSL in AIX (UNIX)* not interpreted in ftp, lftp?Apache “RSA server certificate CN does not match server name” errorUsing 'lftp' as a FTPS (not SFTP) client on SuSE Linux ES 11`lftp` does not connect to FTPS (ftp over ssl)When FTP Requires FTP over TLS is it FTPS?lftp without pseudo-terminal (/dev/ptmx) devicesUbuntu - lftp will not connect to ftps site (Fatal error: gnutls_handshake: An unexpected TLS packet was received.)How to config HTTPS on Apache tomcat






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have a shared hosted server with FTPS access, and I can connect it trough Filezilla with the following configuration:



<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<FileZilla3>
<Servers>
<Server>
<Host>ftp.idrissi.co</Host>
<Port>21</Port>
<Protocol>4</Protocol>
<Type>0</Type>
<User>user@idrissi.co</User>
<Logontype>2</Logontype>
<TimezoneOffset>0</TimezoneOffset>
<PasvMode>MODE_DEFAULT</PasvMode>
<MaximumMultipleConnections>0</MaximumMultipleConnections>
<EncodingType>Auto</EncodingType>
<BypassProxy>0</BypassProxy>
<Name>ftp.idrissi.co</Name>
<Comments />
<LocalDir />
<RemoteDir />
<SyncBrowsing>0</SyncBrowsing>ftp.idrissi.co
</Server>
</Servers>
</FileZilla3>


With ncftp is more simple, I just use the following command ncftp -u user@idrissi.co -P 21 ftp://ftp.idrissi.co.



But, when I try to access with the lftp tool it fail. With lftp, I use the following configuration:



1d [fauve:~/lftptest] % openssl s_client -starttls ftp -crlf -connect ftp.idrissi.co:21 > ftp-idrissi-temp.cert 

1d [fauve:~/lftptest] 130 % cat ftp-idrissi-temp.cert | pcregrep -M '-----BEGIN CERTIFICATE-----(.*n)*.*-----END CERTIFICATE-----' > ftp-idrissi.cert
1d [fauve:~/lftptest] % vim ftp-idrissi.cert
1d [fauve:~/lftptest] % cat lftp-script
set ftps:initial-prot P
set ftp:ssl-force true
set ftp:ssl-protect-data true
set ssl:cert-file ./ftp-idrissi.cert
ls
1d [fauve:~/lftptest] % lftp -e "`cat lftp-script| sed 's/n/; /'`" -p 21 -u user@idrissi.co ftps://ftp.idrissi.co
ls: Erreur fatale: gnutls_handshake: An unexpected TLS packet was received.
1d [fauve:~/lftptest] 1 % lftp -e "`cat lftp-script| sed 's/n/; /'`" -p 21 -u user@idrissi.co ftp://ftp.idrissi.co
ls: Erreur fatale: Certificate verification: certificate common name doesn't match requested host name « ftp.idrissi.co »


I try many variations on the lftp-script but it doesn’t work. And I don’t understand how Fillezilla could do it with a minimalist config. So, how can I connect to my FTP account?










share|improve this question






























    1















    I have a shared hosted server with FTPS access, and I can connect it trough Filezilla with the following configuration:



    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <FileZilla3>
    <Servers>
    <Server>
    <Host>ftp.idrissi.co</Host>
    <Port>21</Port>
    <Protocol>4</Protocol>
    <Type>0</Type>
    <User>user@idrissi.co</User>
    <Logontype>2</Logontype>
    <TimezoneOffset>0</TimezoneOffset>
    <PasvMode>MODE_DEFAULT</PasvMode>
    <MaximumMultipleConnections>0</MaximumMultipleConnections>
    <EncodingType>Auto</EncodingType>
    <BypassProxy>0</BypassProxy>
    <Name>ftp.idrissi.co</Name>
    <Comments />
    <LocalDir />
    <RemoteDir />
    <SyncBrowsing>0</SyncBrowsing>ftp.idrissi.co
    </Server>
    </Servers>
    </FileZilla3>


    With ncftp is more simple, I just use the following command ncftp -u user@idrissi.co -P 21 ftp://ftp.idrissi.co.



    But, when I try to access with the lftp tool it fail. With lftp, I use the following configuration:



    1d [fauve:~/lftptest] % openssl s_client -starttls ftp -crlf -connect ftp.idrissi.co:21 > ftp-idrissi-temp.cert 

    1d [fauve:~/lftptest] 130 % cat ftp-idrissi-temp.cert | pcregrep -M '-----BEGIN CERTIFICATE-----(.*n)*.*-----END CERTIFICATE-----' > ftp-idrissi.cert
    1d [fauve:~/lftptest] % vim ftp-idrissi.cert
    1d [fauve:~/lftptest] % cat lftp-script
    set ftps:initial-prot P
    set ftp:ssl-force true
    set ftp:ssl-protect-data true
    set ssl:cert-file ./ftp-idrissi.cert
    ls
    1d [fauve:~/lftptest] % lftp -e "`cat lftp-script| sed 's/n/; /'`" -p 21 -u user@idrissi.co ftps://ftp.idrissi.co
    ls: Erreur fatale: gnutls_handshake: An unexpected TLS packet was received.
    1d [fauve:~/lftptest] 1 % lftp -e "`cat lftp-script| sed 's/n/; /'`" -p 21 -u user@idrissi.co ftp://ftp.idrissi.co
    ls: Erreur fatale: Certificate verification: certificate common name doesn't match requested host name « ftp.idrissi.co »


    I try many variations on the lftp-script but it doesn’t work. And I don’t understand how Fillezilla could do it with a minimalist config. So, how can I connect to my FTP account?










    share|improve this question


























      1












      1








      1








      I have a shared hosted server with FTPS access, and I can connect it trough Filezilla with the following configuration:



      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
      <FileZilla3>
      <Servers>
      <Server>
      <Host>ftp.idrissi.co</Host>
      <Port>21</Port>
      <Protocol>4</Protocol>
      <Type>0</Type>
      <User>user@idrissi.co</User>
      <Logontype>2</Logontype>
      <TimezoneOffset>0</TimezoneOffset>
      <PasvMode>MODE_DEFAULT</PasvMode>
      <MaximumMultipleConnections>0</MaximumMultipleConnections>
      <EncodingType>Auto</EncodingType>
      <BypassProxy>0</BypassProxy>
      <Name>ftp.idrissi.co</Name>
      <Comments />
      <LocalDir />
      <RemoteDir />
      <SyncBrowsing>0</SyncBrowsing>ftp.idrissi.co
      </Server>
      </Servers>
      </FileZilla3>


      With ncftp is more simple, I just use the following command ncftp -u user@idrissi.co -P 21 ftp://ftp.idrissi.co.



      But, when I try to access with the lftp tool it fail. With lftp, I use the following configuration:



      1d [fauve:~/lftptest] % openssl s_client -starttls ftp -crlf -connect ftp.idrissi.co:21 > ftp-idrissi-temp.cert 

      1d [fauve:~/lftptest] 130 % cat ftp-idrissi-temp.cert | pcregrep -M '-----BEGIN CERTIFICATE-----(.*n)*.*-----END CERTIFICATE-----' > ftp-idrissi.cert
      1d [fauve:~/lftptest] % vim ftp-idrissi.cert
      1d [fauve:~/lftptest] % cat lftp-script
      set ftps:initial-prot P
      set ftp:ssl-force true
      set ftp:ssl-protect-data true
      set ssl:cert-file ./ftp-idrissi.cert
      ls
      1d [fauve:~/lftptest] % lftp -e "`cat lftp-script| sed 's/n/; /'`" -p 21 -u user@idrissi.co ftps://ftp.idrissi.co
      ls: Erreur fatale: gnutls_handshake: An unexpected TLS packet was received.
      1d [fauve:~/lftptest] 1 % lftp -e "`cat lftp-script| sed 's/n/; /'`" -p 21 -u user@idrissi.co ftp://ftp.idrissi.co
      ls: Erreur fatale: Certificate verification: certificate common name doesn't match requested host name « ftp.idrissi.co »


      I try many variations on the lftp-script but it doesn’t work. And I don’t understand how Fillezilla could do it with a minimalist config. So, how can I connect to my FTP account?










      share|improve this question
















      I have a shared hosted server with FTPS access, and I can connect it trough Filezilla with the following configuration:



      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
      <FileZilla3>
      <Servers>
      <Server>
      <Host>ftp.idrissi.co</Host>
      <Port>21</Port>
      <Protocol>4</Protocol>
      <Type>0</Type>
      <User>user@idrissi.co</User>
      <Logontype>2</Logontype>
      <TimezoneOffset>0</TimezoneOffset>
      <PasvMode>MODE_DEFAULT</PasvMode>
      <MaximumMultipleConnections>0</MaximumMultipleConnections>
      <EncodingType>Auto</EncodingType>
      <BypassProxy>0</BypassProxy>
      <Name>ftp.idrissi.co</Name>
      <Comments />
      <LocalDir />
      <RemoteDir />
      <SyncBrowsing>0</SyncBrowsing>ftp.idrissi.co
      </Server>
      </Servers>
      </FileZilla3>


      With ncftp is more simple, I just use the following command ncftp -u user@idrissi.co -P 21 ftp://ftp.idrissi.co.



      But, when I try to access with the lftp tool it fail. With lftp, I use the following configuration:



      1d [fauve:~/lftptest] % openssl s_client -starttls ftp -crlf -connect ftp.idrissi.co:21 > ftp-idrissi-temp.cert 

      1d [fauve:~/lftptest] 130 % cat ftp-idrissi-temp.cert | pcregrep -M '-----BEGIN CERTIFICATE-----(.*n)*.*-----END CERTIFICATE-----' > ftp-idrissi.cert
      1d [fauve:~/lftptest] % vim ftp-idrissi.cert
      1d [fauve:~/lftptest] % cat lftp-script
      set ftps:initial-prot P
      set ftp:ssl-force true
      set ftp:ssl-protect-data true
      set ssl:cert-file ./ftp-idrissi.cert
      ls
      1d [fauve:~/lftptest] % lftp -e "`cat lftp-script| sed 's/n/; /'`" -p 21 -u user@idrissi.co ftps://ftp.idrissi.co
      ls: Erreur fatale: gnutls_handshake: An unexpected TLS packet was received.
      1d [fauve:~/lftptest] 1 % lftp -e "`cat lftp-script| sed 's/n/; /'`" -p 21 -u user@idrissi.co ftp://ftp.idrissi.co
      ls: Erreur fatale: Certificate verification: certificate common name doesn't match requested host name « ftp.idrissi.co »


      I try many variations on the lftp-script but it doesn’t work. And I don’t understand how Fillezilla could do it with a minimalist config. So, how can I connect to my FTP account?







      certificates lftp ftps handshake






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 2 '16 at 3:28







      fauve

















      asked Nov 2 '16 at 3:17









      fauvefauve

      316321




      316321




















          1 Answer
          1






          active

          oldest

          votes


















          2














          Finaly, I get it.



          The problem is resolved by set ssl:check-hostname false.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f320460%2flftp-does-not-connect-to-ftps-ftp-over-tls-server-but-filezilla-and-ncftp-ye%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            Finaly, I get it.



            The problem is resolved by set ssl:check-hostname false.






            share|improve this answer



























              2














              Finaly, I get it.



              The problem is resolved by set ssl:check-hostname false.






              share|improve this answer

























                2












                2








                2







                Finaly, I get it.



                The problem is resolved by set ssl:check-hostname false.






                share|improve this answer













                Finaly, I get it.



                The problem is resolved by set ssl:check-hostname false.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 2 '16 at 4:19









                fauvefauve

                316321




                316321



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f320460%2flftp-does-not-connect-to-ftps-ftp-over-tls-server-but-filezilla-and-ncftp-ye%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    -certificates, ftps, handshake, lftp

                    Popular posts from this blog

                    Creating 100m^2 grid automatically using QGIS?Creating grid constrained within polygon in QGIS?Createing polygon layer from point data using QGIS?Creating vector grid using QGIS?Creating grid polygons from coordinates using R or PythonCreating grid from spatio temporal point data?Creating fields in attributes table using other layers using QGISCreate .shp vector grid in QGISQGIS Creating 4km point grid within polygonsCreate a vector grid over a raster layerVector Grid Creates just one grid

                    Can I sign legal documents with a smiley face?Do Legal Documents Require Signing In Standard Pen Colors?Is it possible to legally prohibit someone from linking to specific pages on your website?Do scans of signed documents have the same legal power as the original document?What can I do if I signed an excessively restrictive contract?Can other party sneak in new contract terms via termination notice?How to prove that someone forged my signature on a contract that I was not aware of?In Australia, Is it legal to sign a document as somebody else?making a contract that includes video licenceLease dispute, over email and text messageIf you must include all of the natural language prose in a legal document, or if it can be abstracted outE-signing: legal ramifications of “identifying” a person

                    Word for a person who has no opinion about whether god existsWord for having a definite opinion while simultaneously withholding judgment?What's the opposite of “newcomer? Is ”veteran" OK?What do you call an “atheist” who might believe in an afterlife?What's a word for someone who wants to voice opinions but not have them challenged?Word for someone who dismisses contrary opinions as irrational?Somone who thinks they are overly special/out of the ordinaryIs there a word, phrase or idiom for “a person who is incapable of thinking about the future”?The belief that a god is human-likeA word for a non-famous person/thing you have heard a lot aboutAdjective for a person who enjoys taking care of their appearance