Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt Contribution
  4. Regarding the steps to upload ssh key to gerrit account
QtWS25 Last Chance

Regarding the steps to upload ssh key to gerrit account

Scheduled Pinned Locked Moved Unsolved Qt Contribution
13 Posts 2 Posters 4.8k Views
  • 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.
  • P Offline
    P Offline
    Pradeep Kumar
    wrote on 28 Sept 2016, 09:24 last edited by kshegunov
    #1

    Hi ,

    I have read the Qt contribution documentation,
    so before downloading the source code and compiling. We need to follow
    three steps.

    1. How to get started - Gerrit registration
    2. Local Setup
    3. Configuring Git.

    I am using Ubuntu OS, and Qt version 5.7.
    Do we need to do as root user?.

    During generating the ssh public key.
    we get two keys, i have saved as id_rsa id_rsa.pub . under ~/.ssh folder.
    Here is a link were i uploaded ssh key of id_rsa.pub.
    https://postimg.org/image/okdcl8ul7/

    have i uploaded ssh key correctly?.


    Edit:
    Please don't post multiples of the same topic!
    https://forum.qt.io/topic/71711/regarding-the-steps-to-upload-ssh-key-to-gerrit-account
    https://forum.qt.io/topic/71707/regarding-the-local-set-up-of-config-file-for-qt-contribution
    https://forum.qt.io/topic/71712/regarding-the-local-set-up-of-config-file-for-qt-contribution

    ~kshegunov

    Pradeep Kumar
    Qt,QML Developer

    K 1 Reply Last reply 28 Sept 2016, 10:32
    0
    • P Offline
      P Offline
      Pradeep Kumar
      wrote on 28 Sept 2016, 10:31 last edited by
      #2

      Hey sorry for that just posted as in general and for both contribution.

      Opened two threads because, upload ssh key to gerrit account and configuring local set up i seggregated so it would be easy.

      Pradeep Kumar
      Qt,QML Developer

      1 Reply Last reply
      0
      • P Pradeep Kumar
        28 Sept 2016, 09:24

        Hi ,

        I have read the Qt contribution documentation,
        so before downloading the source code and compiling. We need to follow
        three steps.

        1. How to get started - Gerrit registration
        2. Local Setup
        3. Configuring Git.

        I am using Ubuntu OS, and Qt version 5.7.
        Do we need to do as root user?.

        During generating the ssh public key.
        we get two keys, i have saved as id_rsa id_rsa.pub . under ~/.ssh folder.
        Here is a link were i uploaded ssh key of id_rsa.pub.
        https://postimg.org/image/okdcl8ul7/

        have i uploaded ssh key correctly?.


        Edit:
        Please don't post multiples of the same topic!
        https://forum.qt.io/topic/71711/regarding-the-steps-to-upload-ssh-key-to-gerrit-account
        https://forum.qt.io/topic/71707/regarding-the-local-set-up-of-config-file-for-qt-contribution
        https://forum.qt.io/topic/71712/regarding-the-local-set-up-of-config-file-for-qt-contribution

        ~kshegunov

        K Offline
        K Offline
        kshegunov
        Moderators
        wrote on 28 Sept 2016, 10:32 last edited by kshegunov
        #3

        @Pradeep-Kumar said in Regarding the steps to upload ssh key to gerrit account:

        Do we need to do as root user?.

        No, at least in principle. I use my own user, not root.

        have i uploaded ssh key correctly?

        From what I can tell. However this key is valid for a single user on your machine. If you uploaded the root ssh key, then it will work for the root user. As I said, don't use root at all. Get the key for a regular user, upload it, and use that regular user for development.

        As for your other question(s) (the threads I've locked) you don't need a .ssh config file.
        Edit: I'm just writing silly things now
        You need a simple entry with your codereview username that looks like this:

        Host codereview.qt-project.org
                Port 29418
                User <your username>
                IdentityFile <private key file>
        

        but that should be explained in the gerrit setup wiki, shouldn't it?

        You only need to add the codereview provided fingerprint as known host. E.g. I have:

        Entry for ~/.ssh/known_hosts:
        [codereview.qt-project.org]:29418 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAA...TSHerdBQ==
        

        Read and abide by the Qt Code of Conduct

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Pradeep Kumar
          wrote on 28 Sept 2016, 10:40 last edited by
          #4

          You need a simple entry with your codereview username that looks like this:

             Host codereview.qt-project.org
              Port 29418
              User <name means user name or name given to gerrit account>
              IdentityFile <private key file path>
          

          As specified in the link https://wiki.qt.io/Setting_up_Gerrit#Local_Setup ,
          based on this i asked Gerrit username?.
          and file path?.

          Pradeep Kumar
          Qt,QML Developer

          K 1 Reply Last reply 28 Sept 2016, 10:43
          0
          • P Pradeep Kumar
            28 Sept 2016, 10:40

            You need a simple entry with your codereview username that looks like this:

               Host codereview.qt-project.org
                Port 29418
                User <name means user name or name given to gerrit account>
                IdentityFile <private key file path>
            

            As specified in the link https://wiki.qt.io/Setting_up_Gerrit#Local_Setup ,
            based on this i asked Gerrit username?.
            and file path?.

            K Offline
            K Offline
            kshegunov
            Moderators
            wrote on 28 Sept 2016, 10:43 last edited by
            #5

            @Pradeep-Kumar said in Regarding the steps to upload ssh key to gerrit account:

            based on this i asked Gerrit username?.

            Yes, gerrit username.

            and file path?

            Path to private key file, e.g. id_rsa meaning ~/.ssh/config/id_rsa. I use the default, so I don't have that entry.

            Read and abide by the Qt Code of Conduct

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Pradeep Kumar
              wrote on 28 Sept 2016, 10:49 last edited by Pradeep Kumar
              #6

              K i rephrase

                  Host codereview.qt-project.org
                  Port 29418
                  User pradeep_kumar.m
                  IdentityFile ~/.ssh/config/ida_rsa
              

              As per the username which i provided to Gerrit account.
              https://postimg.org/image/o1w5bpmmj/

              And Firstly i should not login as root
              second angular brackets should not be there

              Is this correct.

              Pradeep Kumar
              Qt,QML Developer

              K 1 Reply Last reply 28 Sept 2016, 10:53
              0
              • P Pradeep Kumar
                28 Sept 2016, 10:49

                K i rephrase

                    Host codereview.qt-project.org
                    Port 29418
                    User pradeep_kumar.m
                    IdentityFile ~/.ssh/config/ida_rsa
                

                As per the username which i provided to Gerrit account.
                https://postimg.org/image/o1w5bpmmj/

                And Firstly i should not login as root
                second angular brackets should not be there

                Is this correct.

                K Offline
                K Offline
                kshegunov
                Moderators
                wrote on 28 Sept 2016, 10:53 last edited by
                #7

                Appears to be correct. You do this per OS user, meaning if you did that as root and then login as another user, you need to repeat for that other user.

                Read and abide by the Qt Code of Conduct

                1 Reply Last reply
                1
                • P Offline
                  P Offline
                  Pradeep Kumar
                  wrote on 28 Sept 2016, 11:00 last edited by
                  #8
                  1. How to get started - Gerrit registration
                  2. Local Setup

                  in case Gerrit registration and Local set up i understood , then coming to Configuring Git

                  1. Configuring Git.

                  I followed below link as i done in root user.
                  https://wiki.qt.io/Setting_up_Gerrit#Configuring_Git

                  Now i will do as a normal user.
                  so is it fine?.

                  Pradeep Kumar
                  Qt,QML Developer

                  K 1 Reply Last reply 28 Sept 2016, 12:05
                  0
                  • P Offline
                    P Offline
                    Pradeep Kumar
                    wrote on 28 Sept 2016, 11:42 last edited by
                    #9

                    While Configuring Git

                    Link is here.
                    https://wiki.qt.io/Setting_up_Gerrit#Configuring_Git

                    We need provide the commands in user path not as root user.

                    The below commands

                    $ git config --global user.name "Your Name"
                    $ git config --global user.email "me@example.com"

                    user name is our name.
                    user email is gerrit account registered email

                    which i provided in Gerrit account, here is the link
                    https://postimg.org/image/jwv7lcn33/

                    To facilitate following the style guide for commit messages, it is recommended to install the Qt commit message template:

                    $ git config --global commit.template <path to qt5.git or qt.git>/.commit-template

                    path is where the source code is there, we get .git directory, that path we need to give

                    Ex : /user/qt5/.git

                    git config --global commit.template </user/qt5/.git>/.commit-template

                    Is this correct?.

                    Pradeep Kumar
                    Qt,QML Developer

                    1 Reply Last reply
                    0
                    • P Pradeep Kumar
                      28 Sept 2016, 11:00
                      1. How to get started - Gerrit registration
                      2. Local Setup

                      in case Gerrit registration and Local set up i understood , then coming to Configuring Git

                      1. Configuring Git.

                      I followed below link as i done in root user.
                      https://wiki.qt.io/Setting_up_Gerrit#Configuring_Git

                      Now i will do as a normal user.
                      so is it fine?.

                      K Offline
                      K Offline
                      kshegunov
                      Moderators
                      wrote on 28 Sept 2016, 12:05 last edited by
                      #10

                      @Pradeep-Kumar said in Regarding the steps to upload ssh key to gerrit account:

                      Now i will do as a normal user.

                      That's what I advise, yes - use a normal user, not the root.

                      Is this correct?

                      From what I can tell.

                      Read and abide by the Qt Code of Conduct

                      1 Reply Last reply
                      1
                      • P Offline
                        P Offline
                        Pradeep Kumar
                        wrote on 28 Sept 2016, 12:10 last edited by
                        #11

                        user name and email provided and the commands in previous post.
                        i asked is it correct?.

                        Pradeep Kumar
                        Qt,QML Developer

                        K 1 Reply Last reply 28 Sept 2016, 12:23
                        0
                        • P Pradeep Kumar
                          28 Sept 2016, 12:10

                          user name and email provided and the commands in previous post.
                          i asked is it correct?.

                          K Offline
                          K Offline
                          kshegunov
                          Moderators
                          wrote on 28 Sept 2016, 12:23 last edited by kshegunov
                          #12

                          @Pradeep-Kumar said in Regarding the steps to upload ssh key to gerrit account:

                          i asked is it correct?

                          And I have answered in my previous post. If I may be completely blunt, I can't hold your hand through the whole processes, I know it seems confusing at first, but it's just required to follow the instructions in the wiki to the letter.

                          Read and abide by the Qt Code of Conduct

                          1 Reply Last reply
                          1
                          • P Offline
                            P Offline
                            Pradeep Kumar
                            wrote on 28 Sept 2016, 12:26 last edited by
                            #13

                            yes i need to follow correctly , i dont know where is the configuration wrong.

                            Pradeep Kumar
                            Qt,QML Developer

                            1 Reply Last reply
                            0

                            1/13

                            28 Sept 2016, 09:24

                            • Login

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