ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    SFTP Server

    IT Discussion
    10
    24
    2.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      brandon220
      last edited by

      I need to set up an SFTP server for transferring some small files (daily) between two entities. I have convinced the C- Levels to let me host it on Vultr versus in-house, even though we have the necessary infrastructure. I wish they would choose another method than SFTP but I cannot change that.

      I'm thinking Fedora Server with FileZilla but am open to other ideas. I haven't set up an FTP server in a while so I'm here for some guidance and advice.

      E A D 3 Replies Last reply Reply Quote 1
      • D
        Danp
        last edited by

        Doesn't NextCloud support SFTP? Would that work for you?

        S E 2 Replies Last reply Reply Quote 0
        • S
          scottalanmiller
          last edited by

          Fedora. Yup. Nothing to it. Just install and done.

          I mean, add Fail2Ban and be sure to patch it.

          1 Reply Last reply Reply Quote 3
          • S
            scottalanmiller @Danp
            last edited by

            @danp said in SFTP Server:

            Doesn't NextCloud support SFTP? Would that work for you?

            Why all the extra effort?

            D 1 Reply Last reply Reply Quote 0
            • S
              scottalanmiller
              last edited by

              FileZilla is the client on the Windows desktops. Nothing goes on the server. Just for clarity.

              1 Reply Last reply Reply Quote 1
              • D
                Danp @scottalanmiller
                last edited by

                @scottalanmiller said in SFTP Server:

                @danp said in SFTP Server:

                Doesn't NextCloud support SFTP? Would that work for you?

                Why all the extra effort?

                IDK. Thought it might be an option since he indicated a desire to use a different method.

                S 1 Reply Last reply Reply Quote 0
                • S
                  scottalanmiller
                  last edited by

                  SFTP is actually really awesome for file transfers. Highly secure. Nothing is easier or more universal. Can be mounted like a drive, or used like old FTP. Works easily from CLI or GUI.

                  1 Reply Last reply Reply Quote 3
                  • B
                    brandon220
                    last edited by

                    I have many instances of Nextcloud running but have never used SFTP with it.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      scottalanmiller @Danp
                      last edited by

                      @danp said in SFTP Server:

                      @scottalanmiller said in SFTP Server:

                      @danp said in SFTP Server:

                      Doesn't NextCloud support SFTP? Would that work for you?

                      Why all the extra effort?

                      IDK. Thought it might be an option since he indicated a desire to use a different method.

                      Would still be SFTP though.

                      1 Reply Last reply Reply Quote 1
                      • S
                        scottalanmiller @brandon220
                        last edited by

                        @brandon220 said in SFTP Server:

                        I have many instances of Nextcloud running but have never used SFTP with it.

                        Not sure how you would. What port would it be on?

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          brandon220 @scottalanmiller
                          last edited by

                          @scottalanmiller No Idea. Always use 443 from browser. Don't use webdav either.

                          1 Reply Last reply Reply Quote 0
                          • E
                            Emad R @brandon220
                            last edited by Emad R

                            @brandon220

                            Are you sure your not confusing SFTP with FTPS ?

                            Cause if your setting SFTP, it comes by default with SSH server in any modern Linux distro out of the box, and you should use WinSCP with it as client for Windows.

                            As for transferring files, within the Linux OS you choose, you can simply rsync (similar to robocopy on windows) between servers the files using this syntax:

                            rsync -avuz /var/www/example.com/index.html root@108.175.12.239:/var/www/example.com/

                            This will copy the index file from the current linux os to another linux os who has the following IP
                            108.175.12.239

                            a = archive mode
                            v = increase verbose
                            u = skip files that are newer on the receiver
                            z = compress file data during the transfer

                            And you can schedule this in linux cron

                            And SFTP is amazing, so as WebDAV. But i would prefer SFTP all the time.

                            B 1 Reply Last reply Reply Quote 2
                            • B
                              brandon220 @Emad R
                              last edited by

                              @emad-r They are asking for SFTP which will definitely be easy. We already use WinSCP and have no issues. Just second guessing myself and looking for some input from others.

                              S 1 Reply Last reply Reply Quote 0
                              • J
                                jmoore
                                last edited by

                                WinSCP seems good the times I have used it. Use a custom port though for more security

                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  JaredBusch @jmoore
                                  last edited by

                                  @jmoore said in SFTP Server:

                                  WinSCP seems good the times I have used it. Use a custom port though for more security

                                  That is not how that works.

                                  You can use an uncommon port simply to keep fewer bots from hitting your logs, but there is no security there.

                                  1 Reply Last reply Reply Quote 4
                                  • A
                                    Alex Sage @brandon220
                                    last edited by Alex Sage

                                    @brandon220 I would restrict access to the server to only the two entities using the firewall.

                                    B 1 Reply Last reply Reply Quote 0
                                    • S
                                      StrongBad @brandon220
                                      last edited by

                                      @brandon220 said in SFTP Server:

                                      @emad-r They are asking for SFTP which will definitely be easy. We already use WinSCP and have no issues. Just second guessing myself and looking for some input from others.

                                      What are you using for your SFTP server today?

                                      B 1 Reply Last reply Reply Quote 1
                                      • B
                                        brandon220 @Alex Sage
                                        last edited by

                                        @aaronstuder That is the plan once it is up and running.

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          brandon220 @StrongBad
                                          last edited by

                                          @strongbad The existing one is hosted by a service company. It also gets used daily. This will be a new one.

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            dbeato @brandon220
                                            last edited by

                                            @brandon220 said in SFTP Server:

                                            ng Fedora Server with FileZilla but am open to other ideas. I haven't set up an FTP server in a while so I'm here for some guidance and advice.

                                            Your setup should be fine, just avoid the Filezilla Client adds on installation.

                                            B 1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post