Qt Forum

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

    Forum Updated on Feb 6th

    Remote file tranfser

    General and Desktop
    ssh scp pscp
    3
    5
    4151
    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.
    • _
      _Mark_ last edited by

      Hi!
      Is there a native and cross-platform class to transfer files over an SSH channel?
      Currently I just call pscp (on Windows) or scp (on Linux) using QProcess.

      K 1 Reply Last reply Reply Quote 0
      • K
        koahnig @_Mark_ last edited by

        @_Mark_

        It depends what require. Did you check out the Network examples?

        Other than that I am not aware off, but there have been similar requests in the past (e.g. this) So, it looks that you are on a standard track.

        There is also a Qssh project set up. However, this is not part of Qt but based on Qt. Unfortunately, it looks that there is no activity for Qt 5 related updates.

        Vote the answer(s) that helped you to solve your issue(s)

        _ K 2 Replies Last reply Reply Quote 0
        • _
          _Mark_ @koahnig last edited by

          @koahnig

          As far as I understand the network examples work only between two applications. Instead I just need to copy a file from a Qt5 application to another machine which accept SSH connections.

          In the thread you provided they say the Qt framework does NOT provide an SSH implementation so I'm afraid the final answer is: no, you can't use any Qt class to do this.

          The major problem using pscp via QProcess is to handle the user interactions about accepting the fingerprint the first time.

          1 Reply Last reply Reply Quote 0
          • K
            koahnig @koahnig last edited by

            @koahnig said:

            There is also a Qssh project set up. However, this is not part of Qt but based on Qt. Unfortunately, it looks that there is no activity for Qt 5 related updates.

            You are right to assume a No. The only lead would be the project referred to before.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              Hi,

              KIO might also be of interest. Here you can find an article about a good use case.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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