• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Change FTP on fog server to SFTP??

    Scheduled Pinned Locked Moved
    General Problems
    5
    5
    735
    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
      Brendan Clemente
      last edited by

      Good afternoon all, is it possible to change the FTP service used by FOG (vsftpd.service) to an SFTP service? Thank you in advance.

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @Brendan Clemente
        last edited by Wayne Workman

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott
          last edited by

          There’s SFTP which uses ssh ports to transfer files. This would already exist on most Linux servers.

          There’s FTPS which works by using certificates.

          Which are you trying to do? Vsftp can do ftp and ftps I believe, but don’t think it would do sftp.

          Essentially SFTP most likely is already set and configured on your machine. Just use the user and password you would use to logon to the machine and you should be good to go.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          george1421G 1 Reply Last reply Reply Quote 1
          • george1421G
            george1421 Moderator @Tom Elliott
            last edited by

            @Tom-Elliott I think the FTP server is only half the equation here. We also need to ensure that lftp supports sftp.

            Based on this article: https://how-to.fandom.com/wiki/How_to_use_lftp_as_a_sftp_client it says that lftp could support ssl.

            Running this on my centos 7 based FOG server it doesn’t look like the distro version of lftp supports ssl.

            # ldd /usr/bin/lftp
                    linux-vdso.so.1 =>  (0x00007ffeebd50000)
                    liblftp-jobs.so.0 => /lib64/liblftp-jobs.so.0 (0x00007f5d6337f000)
                    liblftp-tasks.so.0 => /lib64/liblftp-tasks.so.0 (0x00007f5d6310b000)
                    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5d62eef000)
                    libreadline.so.6 => /lib64/libreadline.so.6 (0x00007f5d62ca9000)
                    libutil.so.1 => /lib64/libutil.so.1 (0x00007f5d62aa6000)
                    libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00007f5d6287c000)
                    libdl.so.2 => /lib64/libdl.so.2 (0x00007f5d62678000)
                    libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f5d62371000)
                    libm.so.6 => /lib64/libm.so.6 (0x00007f5d6206f000)
                    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f5d61e59000)
                    libc.so.6 => /lib64/libc.so.6 (0x00007f5d61a8b000)
                    /lib64/ld-linux-x86-64.so.2 (0x00007f5d635c7000)
            

            So that means FOG would need to compile lftp for the FOG host server during install. I have not checked the lftp from FOS Linux but we would also need to ensure that lftp in FOS supports ssl too. We have a bit more control of FOS Linux support of ssl than the FOG Host server.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by

              @george1421 said in Change FTP on fog server to SFTP??:

              So that means FOG would need to compile lftp for the FOG host server during install. I have not checked the lftp from FOS Linux but we would also need to ensure that lftp in FOS supports ssl too. We have a bit more control of FOS Linux support of ssl than the FOG Host server.

              From my point of view FTPS (FTP with SSL) is no better than FTP from a firewall/network/security point of view and I wouldn’t spend a second on trying to make this work.

              If we really think about making this part more secure I would want to push this down the SSH/SCP/rsyncOverSSH way instead! I have not looked into this yet but I could imagine we can make this work for 1.6.x some weeks down the road.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

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

              200

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project