Activity Team/Git Tutorial: Difference between revisions

Line 17: Line 17:
=== Create SSH Key ===
=== Create SSH Key ===
To create a key use ssh-keygen. The following command will create an “dsa” key:
To create a key use ssh-keygen. The following command will create an “dsa” key:
  ssh-keygen -t dsa
  ssh-keygen -t dsa


For creating a “rsa” key use:
For creating a “rsa” key use:
  ssh-keygen -t rsa
  ssh-keygen -t rsa


The generated key will be stored in the hidden <tt>.ssh</tt> folder.
The generated key will be stored in the hidden <tt>.ssh</tt> folder.
<tt>id_dsa</tt> is your private key. Only you should have access to this private key.
<tt>id_dsa</tt> is your private key. Only you should have access to this private key.
<tt>id_dsa.pub</tt> is your public key.
<tt>id_dsa.pub</tt> is your public key.
  ls -al ~/.ssh
  ls -al ~/.ssh
  -rw-------  1 strom strom  668 2009-12-17 21:51 id_dsa
  -rw-------  1 strom strom  668 2009-12-17 21:51 id_dsa
  -rw-r--r--  1 strom strom  603 2009-12-17 21:51 id_dsa.pub
  -rw-r--r--  1 strom strom  603 2009-12-17 21:51 id_dsa.pub


Log in to http://git.sugarlabs.org/account and upload you public key. In your account you can find a link named <tt>Add SSH key</tt>. You can paste your public key directly to  the input field.
Log in to http://git.sugarlabs.org/account and upload you public key. In your account you can find a link named <tt>Add SSH key</tt>. You can paste your public key directly to  the input field.