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, 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

                      13/13

                      28 Sept 2016, 12:26

                      • Login

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