Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to implement application for secured ftp in qt
Qt 6.11 is out! See what's new in the release blog

How to implement application for secured ftp in qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 1.8k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    Rajkumar_91
    wrote on last edited by
    #1

    I have trying to create qt application for download and upload file from secured FTP server in qt. I have no idea how to achieve this. Please guide me how to do?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      You could use
      https://github.com/lvklabs/QSsh

      R 2 Replies Last reply
      1
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by VRonin
        #3

        QNetworkAccessManager should handle the protocol seamlessly, it's just a get() to download and post() to upload

        EDIT: I was wrong

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        2
        • mrjjM mrjj

          Hi
          You could use
          https://github.com/lvklabs/QSsh

          R Offline
          R Offline
          Rajkumar_91
          wrote on last edited by
          #4

          Hi
          Thank you for your response. I will try QSsh with my application.

          1 Reply Last reply
          0
          • mrjjM mrjj

            Hi
            You could use
            https://github.com/lvklabs/QSsh

            R Offline
            R Offline
            Rajkumar_91
            wrote on last edited by
            #5

            Hi,
            I tried QSsh in my application, once I build my application with QSsh than I get error like error: LNK1104: cannot open file 'QSsh-master/lib.obj' .

            JonBJ 1 Reply Last reply
            0
            • R Rajkumar_91

              Hi,
              I tried QSsh in my application, once I build my application with QSsh than I get error like error: LNK1104: cannot open file 'QSsh-master/lib.obj' .

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @Rajkumar_91
              Then I can only imagine that file does not exist there, for whatever reason.

              Personally I'd try the Qt non-third-party-application approach suggested by @VRonin , which just means you write code within the normal Qt framework. Unless you need an external library for your purposes, "KISS"!

              1 Reply Last reply
              1
              • mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by mrjj
                #7

                Oh, so QNetworkAccessManager does handle SFTP protocol natively ?
                Way better then :)

                Update: It supports FTP/s but SFTP is different.

                1 Reply Last reply
                0
                • VRoninV Offline
                  VRoninV Offline
                  VRonin
                  wrote on last edited by
                  #8

                  Thanks @mrjj for making me see my mistake.

                  You can use libcurl to do it. It's the reference network library for me.

                  • libcurl page: https://curl.haxx.se/libcurl/
                  • Exmaple in sftp: https://curl.haxx.se/libcurl/c/sftpget.html
                  • C++ wrapper over the main library for C-phobics like me: https://github.com/jpbarrette/curlpp

                  "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                  ~Napoleon Bonaparte

                  On a crusade to banish setIndexWidget() from the holy land of Qt

                  1 Reply Last reply
                  3

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved