How to check if a FTP server supports EPSV (Extended Passive) mode











up vote
1
down vote

favorite
1












From this answer, I now know what is the difference between PASV and EPSV modes. Is there a definitive way of knowing if the FTP server supports EPSV?



Is it enough to just check the response of the EPSV command?










share|improve this question


























    up vote
    1
    down vote

    favorite
    1












    From this answer, I now know what is the difference between PASV and EPSV modes. Is there a definitive way of knowing if the FTP server supports EPSV?



    Is it enough to just check the response of the EPSV command?










    share|improve this question
























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      From this answer, I now know what is the difference between PASV and EPSV modes. Is there a definitive way of knowing if the FTP server supports EPSV?



      Is it enough to just check the response of the EPSV command?










      share|improve this question













      From this answer, I now know what is the difference between PASV and EPSV modes. Is there a definitive way of knowing if the FTP server supports EPSV?



      Is it enough to just check the response of the EPSV command?







      ftp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 15 at 7:54









      Anirudh Sridhar

      82




      82






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          Send the FEAT command. Defined in RFC 2389, it is the primary mechanism used by clients to discover supported features. IANA maintains a list of FTP commands and their FEAT codes.



          If the server says that FEAT itself isn't a recognized command, it is best to assume that the FEAT-negotiated extensions such as EPSV are not supported either.



          As for directly trying EPSV (discovery by brute force), it might work in most cases but I think it also has a chance of triggering server or even router bugs, so I wouldn't use this method myself. Besides, you'll probably end up using FEAT for various other reasons anyway.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2fsuperuser.com%2fquestions%2f1375575%2fhow-to-check-if-a-ftp-server-supports-epsv-extended-passive-mode%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








            up vote
            2
            down vote



            accepted










            Send the FEAT command. Defined in RFC 2389, it is the primary mechanism used by clients to discover supported features. IANA maintains a list of FTP commands and their FEAT codes.



            If the server says that FEAT itself isn't a recognized command, it is best to assume that the FEAT-negotiated extensions such as EPSV are not supported either.



            As for directly trying EPSV (discovery by brute force), it might work in most cases but I think it also has a chance of triggering server or even router bugs, so I wouldn't use this method myself. Besides, you'll probably end up using FEAT for various other reasons anyway.






            share|improve this answer

























              up vote
              2
              down vote



              accepted










              Send the FEAT command. Defined in RFC 2389, it is the primary mechanism used by clients to discover supported features. IANA maintains a list of FTP commands and their FEAT codes.



              If the server says that FEAT itself isn't a recognized command, it is best to assume that the FEAT-negotiated extensions such as EPSV are not supported either.



              As for directly trying EPSV (discovery by brute force), it might work in most cases but I think it also has a chance of triggering server or even router bugs, so I wouldn't use this method myself. Besides, you'll probably end up using FEAT for various other reasons anyway.






              share|improve this answer























                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                Send the FEAT command. Defined in RFC 2389, it is the primary mechanism used by clients to discover supported features. IANA maintains a list of FTP commands and their FEAT codes.



                If the server says that FEAT itself isn't a recognized command, it is best to assume that the FEAT-negotiated extensions such as EPSV are not supported either.



                As for directly trying EPSV (discovery by brute force), it might work in most cases but I think it also has a chance of triggering server or even router bugs, so I wouldn't use this method myself. Besides, you'll probably end up using FEAT for various other reasons anyway.






                share|improve this answer












                Send the FEAT command. Defined in RFC 2389, it is the primary mechanism used by clients to discover supported features. IANA maintains a list of FTP commands and their FEAT codes.



                If the server says that FEAT itself isn't a recognized command, it is best to assume that the FEAT-negotiated extensions such as EPSV are not supported either.



                As for directly trying EPSV (discovery by brute force), it might work in most cases but I think it also has a chance of triggering server or even router bugs, so I wouldn't use this method myself. Besides, you'll probably end up using FEAT for various other reasons anyway.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 15 at 8:28









                grawity

                228k35479540




                228k35479540






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375575%2fhow-to-check-if-a-ftp-server-supports-epsv-extended-passive-mode%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







                    Popular posts from this blog

                    Сан-Квентин

                    Алькесар

                    Josef Freinademetz