User Tools

Site Tools


how_to_use_gerrit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
how_to_use_gerrit [2017/10/25 21:42]
Mats Wichmann
how_to_use_gerrit [2017/12/08 16:04] (current)
Mats Wichmann
Line 8: Line 8:
 == Step 1: Create SSH keys == == Step 1: Create SSH keys ==
  
-If you don't already have an ssh keypair, create one. On a Linux system, this command from a shell will do it: <code bash>$ ssh-keygen -t rsa -C "Your name <​your_email_address>"</​code>​ Example for John Doe: <code bash>$ ssh-keygen -t rsa -C "John Doe john.doe@example.com"</​code>​ After pressing the ``Enter`` key at several prompts, an ssh key-pair will be created in ``~/.ssh`` as ``id_rsa`` and ``id_rsa.pub``.+If you don't already have an ssh keypair, create one. On a Linux system, this command from a shell will do it: <code bash>$ ssh-keygen -t rsa -C "Your name <​your_email_address>"</​code>​ Example for John Doe: <code bash>$ ssh-keygen -t rsa -C "John Doe john.doe@example.com"</​code>​ After pressing the ''​Enter'' ​key at several prompts, an ssh key-pair will be created in ''​~/.ssh'' ​as ''​id_rsa'' ​and ''​id_rsa.pub''​.
  
 == Step 2: Setting up SSH == == Step 2: Setting up SSH ==
  
-Edit ``~/​.ssh/​config`` using your favorite text editor and add these lines:+Edit ''​~/​.ssh/​config'' ​using your favorite text editor and add these lines:
  
   Host gerrit.iotivity.org   Host gerrit.iotivity.org
Line 20: Line 20:
       Port 29418       Port 29418
  
-If you are lucky enough to be working from a location that does not need a proxy, this should be enough. If you are inside a corporate network, a proxy is very likely to be needed. The details of what will work are likely to vary, but using netcat (command named ``nc``) or connect has worked for many.  Here are a couple of examples for adding to the stanza for the gerrit server:+If you are lucky enough to be working from a location that does not need a proxy, this should be enough. If you are inside a corporate network, a proxy is very likely to be needed. The details of what will work are likely to vary, but using netcat (command named ''​nc'' ​or connect has worked for many.  Here are a couple of examples for adding to the stanza for the gerrit server:
  
   ProxyCommand nc -X5 -x <​proxy-address>:<​port>​ %h %p   ProxyCommand nc -X5 -x <​proxy-address>:<​port>​ %h %p
Line 48: Line 48:
 </​code>​ </​code>​
  
-If your settings are correct, you will see the message beginning with the below (and then telling you how to proceed).+If your settings are correct, you will see the message beginning with the below  
 +(and then telling you how to proceed).
 If not, check SSH proxy and SSH public key on Gerrit.<​code>​ If not, check SSH proxy and SSH public key on Gerrit.<​code>​
 ****    Welcome to Gerrit Code Review ​   **** ****    Welcome to Gerrit Code Review ​   ****
how_to_use_gerrit.txt · Last modified: 2017/12/08 16:04 by Mats Wichmann