Date: Fri, 29 Mar 2024 05:55:11 +0000 (UTC) Message-ID: <602663937.16083.1711691711406@aws-us-west-2-oran-confluence-1.web.codeaurora.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_16082_1916215218.1711691711406" ------=_Part_16082_1916215218.1711691711406 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The tutorial covers how to make code contributions to the O-RAN Software= Community and O-RAN Spec Code repositories.
Find the section about "SSH Key= s" on the Settings page, paste our public key into the "Ne= w SSH Key" box, then click on the "ADD NEW SSH KEY" button. We should now see this key appearing at the top of the SSH= Keys section. We will also receive an email notification about a new= SSH key just being added.
Below is an example session of generating a new key pair, add to local= ssh server, and test it with the Gerrit server.
$ ssh-keygen -t rsa -C "your_email@youremail.com" Generating public/private rsa key pair. Enter file in which to save the key (/Users/testaccount/.ssh/id_rsa): /tmp/= testkey Enter passphrase (empty for no passphrase):=20 Enter same passphrase again:=20 Your identification has been saved in /tmp/testkey. Your public key has been saved in /tmp/testkey.pub. The key fingerprint is: SHA256:DaNfWTIWxeG6SSfSVT4FuRuzZI5vTYRrUEoCzFl2rRg your_email@youremail.com The key's randomart image is: +---[RSA 2048]----+ | o.++o+ooo.| | +.E+oo+. | | o +=3D++oo | | . *.B+ B..| | . S O .* B | | . + =3D. * .| | . o o o | | o .| | . | +----[SHA256]-----+ $ ls testkey* testkey testkey.pub $ eval $(ssh-agent) Agent pid 69281 $ ssh-add ./testkey Identity added: ./testkey (your_email@youremail.com) $ ssh -p 29418 testaccount@gerrit.o-ran-sc.org=20 The authenticity of host '[gerrit.o-ran-sc.org]:29418 ([34.215.66.175]:2941= 8)' can't be established. ECDSA key fingerprint is SHA256:hd0AoKsvuL7gCETA8JLuLhhUBHcjwHysY6GvKSs+gfc= . Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[gerrit.o-ran-sc.org]:29418,[34.215.66.175]:294= 18' (ECDSA) to the list of known hosts. **** Welcome to Gerrit Code Review **** Hi XXXX, you have successfully connected over SSH. Unfortunately, interactive shells are disabled. To clone a hosted Git repository, use: git clone ssh://testaccount@gerrit.o-ran-sc.org:29418/REPOSITORY_NAME.git Connection to gerrit.o-ran-sc.org closed by remote host. Connection to gerrit.o-ran-sc.org closed.
sudo apt-get= install git
sudo apt-get install git-review
git config --global user.email "example@example.com" git config --global user.name "example"
Change dir into the repo;
After the initial code change submit, if further changes (patches) are n=
eeded for the same submission, we can make the change and git add, use