Which is fast FTP or SSH ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pankajit09
    Contributor
    • Dec 2006
    • 296

    Which is fast FTP or SSH ?

    I want to know which is fast -->

    FTP or SSH ?

    Is there any better alternative ?
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by pankajit09
    I want to know which is fast -->

    FTP or SSH ?

    Is there any better alternative ?
    It depends on what you are trying to do.
    What are you trying to do? File sharing? Uploading? Remote shell? X11 Forwarding?
    Please elaborate.

    Comment

    • pankajit09
      Contributor
      • Dec 2006
      • 296

      #3
      I want to upload and download some files from a remote machine.

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Originally posted by pankajit09
        I want to upload and download some files from a remote machine.
        How remote? Is it the local LAN?

        Comment

        • combas
          New Member
          • Feb 2007
          • 2

          #5
          Basically FTP will be faster no matter what, if you are only trying to trasfer a file to another computer.

          FTP stands for file transfer protocol

          SSH stands for secure shell (note the security)

          Security is great, but it slows down the transaction, very slightly probably not even noticeable.

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            Originally posted by combas
            Basically FTP will be faster no matter what, if you are only trying to trasfer a file to another computer.

            FTP stands for file transfer protocol

            SSH stands for secure shell (note the security)

            Security is great, but it slows down the transaction, very slightly probably not even noticeable.
            Welcome to The Scripts combas! Thanks for your response.
            I agree entirely with your accurate summary of FTP and SSH, however, in addressing the second part of the question, there are a lot of other, quicker alternatives.
            Samba can be used if the computers are on the same network. AFP is another protocol which is quicker than FTP. And if you want to get into really quick-and-dirty solutions, piping files through nc is going to be the quickest, dirtiest technique of all.

            Comment

            • pankajit09
              Contributor
              • Dec 2006
              • 296

              #7
              Originally posted by Motoma
              How remote? Is it the local LAN?

              No its not the local LAN.

              Its the distance of India and US .

              Comment

              • hatemj
                New Member
                • Feb 2007
                • 4

                #8
                You can use Secured FTP (SFTP ) instead of FTP.it is available in the net and you can download it. Some packadges include both SSH and SFTP.

                With my regards

                Comment

                • winnie
                  New Member
                  • Feb 2007
                  • 1

                  #9
                  The answer is: both :) Use FTP to upload a Zip and SSH to unzip it there. If you don't have ssh connectivity you may use ZipDeploy.
                  Last edited by Motoma; Feb 21 '07, 03:15 PM. Reason: Removed Link to Commecial Software.

                  Comment

                  • Motoma
                    Recognized Expert Specialist
                    • Jan 2007
                    • 3236

                    #10
                    Welcome to theScripts winnie.
                    Please refrain from placing commercial software advertisements in our message boards.

                    Comment

                    • ghostdog74
                      Recognized Expert Contributor
                      • Apr 2006
                      • 511

                      #11
                      whatever it is, FTP or SSH, it also depends on the speed of your network connections.

                      Comment

                      • pankajit09
                        Contributor
                        • Dec 2006
                        • 296

                        #12
                        Originally posted by Motoma
                        Welcome to The Scripts combas! Thanks for your response.
                        I agree entirely with your accurate summary of FTP and SSH, however, in addressing the second part of the question, there are a lot of other, quicker alternatives.
                        Samba can be used if the computers are on the same network. AFP is another protocol which is quicker than FTP. And if you want to get into really quick-and-dirty solutions, piping files through nc is going to be the quickest, dirtiest technique of all.
                        Can you tell me more about AFP and piping files through nc ?

                        Comment

                        • Motoma
                          Recognized Expert Specialist
                          • Jan 2007
                          • 3236

                          #13
                          Originally posted by pankajit09
                          Can you tell me more about AFP and piping files through nc ?
                          AFP is Apple's proprietary network sharing. It works quite well, and there are utilities to use it on both Windows and Linux.

                          nc is the tool netcat. It is a very handy thing to know how to use.
                          On your server you would:
                          Code:
                          $ nc -l 4999 | df of=filename.ext
                          and on the client you would
                          Code:
                          $ dd if=filename.ext | nc server.com 4999
                          Be careful with this technique, as It is quite insecure. Anyone can send data between when you open the port and when the first connection closes.

                          Comment

                          • pankajit09
                            Contributor
                            • Dec 2006
                            • 296

                            #14
                            Originally posted by Motoma
                            AFP is Apple's proprietary network sharing. It works quite well, and there are utilities to use it on both Windows and Linux.
                            Is AFP available in Debian ?

                            Originally posted by Motoma
                            nc is the tool netcat. It is a very handy thing to know how to use.
                            On your server you would:
                            Code:
                            $ nc -l 4999 | df of=filename.ext
                            and on the client you would
                            Code:
                            $ dd if=filename.ext | nc server.com 4999
                            Be careful with this technique, as It is quite insecure. Anyone can send data between when you open the port and when the first connection closes.
                            That means if there is a file transfer going on between two machines through a port and if a third machine also does some transfer through the same port then the file might get corrupt ?

                            Comment

                            • Motoma
                              Recognized Expert Specialist
                              • Jan 2007
                              • 3236

                              #15
                              Originally posted by pankajit09
                              Is AFP available in Debian ?
                              Dunno. Google it.

                              Originally posted by pankajit09
                              That means if there is a file transfer going on between two machines through a port and if a third machine also does some transfer through the same port then the file might get corrupt ?
                              No, it means if someone connects to the port before you, they could send anything and have it end up in that file.
                              Or, if they were watching your traffic, they could inject their own data into it.

                              Comment

                              Working...