Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Deployment to remote Linux development
Forum Updated to NodeBB v4.3 + New Features

Deployment to remote Linux development

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
11 Posts 4 Posters 2.2k 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1

    I'm using Qt Creator 4.9.0, Based on Qt 5.12.2 (Clang 10.0 (Apple), 64 bit)

    I'm working on a remote linux device. I want to deploy the application I'm writing to the device. Another project (the original) was developed with an older version of Qt Creator on Ubuntu. When an application is deploy using this environment a password is supplied as part of the deployment set-up.

    I don't have this option, I add a Device Configuration using the Wizard, selecting Generic Linux Device then click Start Wizard, I enter the device name, IP and username then click Continue.

    Then I'm asked for Key Deployment details....Is there any way to revert this to use a password? I'm not sure what or how I should set this up?

    Thank you,

    Kind Regards,
    Sy

    aha_1980A 1 Reply Last reply
    0
    • SPlattenS SPlatten

      I'm using Qt Creator 4.9.0, Based on Qt 5.12.2 (Clang 10.0 (Apple), 64 bit)

      I'm working on a remote linux device. I want to deploy the application I'm writing to the device. Another project (the original) was developed with an older version of Qt Creator on Ubuntu. When an application is deploy using this environment a password is supplied as part of the deployment set-up.

      I don't have this option, I add a Device Configuration using the Wizard, selecting Generic Linux Device then click Start Wizard, I enter the device name, IP and username then click Continue.

      Then I'm asked for Key Deployment details....Is there any way to revert this to use a password? I'm not sure what or how I should set this up?

      Thank you,

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @SPlatten

      You've hit QTCREATORBUG-22030. Please comment and vote there so that password input will be possible again.

      For now, you have two possibilities:

      1. Go back to Creator 4.8 where password still works
      2. Create a SSH public/private key pair and load the public key to the remote device and specify the private key in Creator.

      I currently use option 2, but it is tedious if you have a lot of different devices without the key.

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      3
      • SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by
        #3

        Thank you, this option really needs to be restored in the configuration. How do I vote for it to be put back in?

        Kind Regards,
        Sy

        J.HilkJ 1 Reply Last reply
        0
        • SPlattenS SPlatten

          Thank you, this option really needs to be restored in the configuration. How do I vote for it to be put back in?

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @SPlatten
          you can't vote for it, because the ticket is in the closed state.

          Apparently it's the way its supposed to be. You would have to make a change request ticket (same platform as the bug report)

          But chances seem to be slim


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          aha_1980A 1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @SPlatten
            you can't vote for it, because the ticket is in the closed state.

            Apparently it's the way its supposed to be. You would have to make a change request ticket (same platform as the bug report)

            But chances seem to be slim

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @J.Hilk said in Deployment to remote Linux development:

            you can't vote for it, because the ticket is in the closed state.

            Huh? I didn't know that! That's IMHO a a bad restriction, as uses can't show their interest in a specific bug.

            But chances seem to be slim

            Never give up :)

            Qt has to stay free or it will die.

            1 Reply Last reply
            0
            • SPlattenS Offline
              SPlattenS Offline
              SPlatten
              wrote on last edited by
              #6

              This is as frustrating as hell....I need to deploy to a target which previously used username and password, I have no idea how to get the target device to accept a private key file and the instructions are not very helpful or clear.

              This is a backward step and should be an option.

              Kind Regards,
              Sy

              aha_1980A 1 Reply Last reply
              0
              • SPlattenS SPlatten

                This is as frustrating as hell....I need to deploy to a target which previously used username and password, I have no idea how to get the target device to accept a private key file and the instructions are not very helpful or clear.

                This is a backward step and should be an option.

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @SPlatten Can you log on the device by SSH?

                Then it should be possible to create a SSH public/private key pair on your development station by ssh-keygen. Afterwards you copy the public key (e.g. ~/.ssh/id_rsa.pub to the device and append it to the file ~/.ssh/authorized_keys.

                Afterwards you should be able to log-in on the device without password, just by the key.

                And if you now point QtCreator to your private key: voilá, it should work from there too.

                Qt has to stay free or it will die.

                N 1 Reply Last reply
                1
                • aha_1980A aha_1980

                  @SPlatten Can you log on the device by SSH?

                  Then it should be possible to create a SSH public/private key pair on your development station by ssh-keygen. Afterwards you copy the public key (e.g. ~/.ssh/id_rsa.pub to the device and append it to the file ~/.ssh/authorized_keys.

                  Afterwards you should be able to log-in on the device without password, just by the key.

                  And if you now point QtCreator to your private key: voilá, it should work from there too.

                  N Offline
                  N Offline
                  nimbusgb
                  wrote on last edited by
                  #8

                  @aha_1980 Would be nice if Digi kept their documentation up to date though.

                  aha_1980A 1 Reply Last reply
                  0
                  • N nimbusgb

                    @aha_1980 Would be nice if Digi kept their documentation up to date though.

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @nimbusgb What do you mean? That is documented at https://doc.qt.io/qtcreator/creator-developing-generic-linux.html

                    Regards

                    Qt has to stay free or it will die.

                    N 1 Reply Last reply
                    1
                    • aha_1980A aha_1980

                      @nimbusgb What do you mean? That is documented at https://doc.qt.io/qtcreator/creator-developing-generic-linux.html

                      Regards

                      N Offline
                      N Offline
                      nimbusgb
                      wrote on last edited by
                      #10

                      @aha_1980 Sadly the standard yocto build does not have ssh-keygen on the target device so getting a key built is 'challenging' and digi's documentation only extends to Qt version 2 iirc.

                      aha_1980A 1 Reply Last reply
                      0
                      • N nimbusgb

                        @aha_1980 Sadly the standard yocto build does not have ssh-keygen on the target device so getting a key built is 'challenging' and digi's documentation only extends to Qt version 2 iirc.

                        aha_1980A Offline
                        aha_1980A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @nimbusgb

                        Sadly the standard yocto build does not have ssh-keygen on the target device so getting a key built is 'challenging'

                        You don't need ssh-keygen on the target. You generate the key pair on your development machine and only deploy the public key to the target.

                        and digi's documentation only extends to Qt version 2 iirc.

                        What do you mean by that? Btw, the company is now called The Qt Company, not Digia.

                        Regards

                        Qt has to stay free or it will die.

                        1 Reply Last reply
                        2

                        • Login

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