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. simultaneously direct and SSH Tunnel connections to port 3306 on local server 192.168.0.0 and www remote server, respectively
Forum Updated to NodeBB v4.3 + New Features

simultaneously direct and SSH Tunnel connections to port 3306 on local server 192.168.0.0 and www remote server, respectively

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 582 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.
  • A Offline
    A Offline
    arost
    wrote on last edited by arost
    #1

    Hi Everybody,

    How to have simultaneously both

    A) direct connection to port 3306 on local server 192.168.0.0 directly and

    B) SSH Tunnel connection to port 3306 on www remote server

    in the same single Qt 6.5 C++ app running on a Windows 10 64 bits ?

    Does it work using SSH tunneling of the whole Windows OS or the app?

    Christian EhrlicherC 1 Reply Last reply
    0
    • A arost deleted this topic on
    • A arost restored this topic on
    • A arost

      Hi Everybody,

      How to have simultaneously both

      A) direct connection to port 3306 on local server 192.168.0.0 directly and

      B) SSH Tunnel connection to port 3306 on www remote server

      in the same single Qt 6.5 C++ app running on a Windows 10 64 bits ?

      Does it work using SSH tunneling of the whole Windows OS or the app?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      What's the realtion to Qt here? Just because you use a Qt app?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      A 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        What's the realtion to Qt here? Just because you use a Qt app?

        A Offline
        A Offline
        arost
        wrote on last edited by
        #3

        @Christian-Ehrlicher
        How to have both direct and SSH connections simultaneously within an Qt app?

        Christian EhrlicherC 1 Reply Last reply
        0
        • A arost

          @Christian-Ehrlicher
          How to have both direct and SSH connections simultaneously within an Qt app?

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          How do you use ssh in this Qt app? Via libssh? Please provide some code.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          A 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            How do you use ssh in this Qt app? Via libssh? Please provide some code.

            A Offline
            A Offline
            arost
            wrote on last edited by arost
            #5

            @Christian-Ehrlicher
            Nothing yet.
            I will be appreciated with comments and suggestions in this regard.

            SGaistS 1 Reply Last reply
            0
            • A arost

              @Christian-Ehrlicher
              Nothing yet.
              I will be appreciated with comments and suggestions in this regard.

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              You don't tunnel a whole OS, just a connection to a socket.

              Nothing forbids you to establish a connection to multiple servers at the same time.

              The question is: are you establishing the tunnel outside your application ?

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

              A 1 Reply Last reply
              0
              • SGaistS SGaist

                Hi,

                You don't tunnel a whole OS, just a connection to a socket.

                Nothing forbids you to establish a connection to multiple servers at the same time.

                The question is: are you establishing the tunnel outside your application ?

                A Offline
                A Offline
                arost
                wrote on last edited by
                #7

                @SGaist
                if it is not complex, I prefer to embed ssh connection inside app.

                SGaistS 1 Reply Last reply
                0
                • A arost

                  @SGaist
                  if it is not complex, I prefer to embed ssh connection inside app.

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Complexity is in the eye of the beholder.

                  Libssh has a chapter about that matter.

                  Note that I have not used it directly.

                  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
                  0

                  • Login

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