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
Forum Updated to NodeBB v4.3 + New Features

Regarding the steps to upload ssh key to gerrit account

Scheduled Pinned Locked Moved Unsolved Qt Contribution
13 Posts 2 Posters 5.2k Views 2 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.
  • Pradeep KumarP Offline
    Pradeep KumarP Offline
    Pradeep Kumar
    wrote on 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

    kshegunovK 1 Reply Last reply
    0
    • Pradeep KumarP Pradeep Kumar

      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?.

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on 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
      • Pradeep KumarP Offline
        Pradeep KumarP Offline
        Pradeep Kumar
        wrote on 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

        kshegunovK 1 Reply Last reply
        0
        • Pradeep KumarP Pradeep Kumar

          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.

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on 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
          • Pradeep KumarP Offline
            Pradeep KumarP Offline
            Pradeep Kumar
            wrote on 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

            kshegunovK 1 Reply Last reply
            0
            • Pradeep KumarP Offline
              Pradeep KumarP Offline
              Pradeep Kumar
              wrote on 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
              • Pradeep KumarP Pradeep Kumar
                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?.

                kshegunovK Offline
                kshegunovK Offline
                kshegunov
                Moderators
                wrote on 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
                • Pradeep KumarP Offline
                  Pradeep KumarP Offline
                  Pradeep Kumar
                  wrote on 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

                  kshegunovK 1 Reply Last reply
                  0
                  • Pradeep KumarP Pradeep Kumar

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

                    kshegunovK Offline
                    kshegunovK Offline
                    kshegunov
                    Moderators
                    wrote on 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
                    • Pradeep KumarP Offline
                      Pradeep KumarP Offline
                      Pradeep Kumar
                      wrote on 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

                      • Login

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