Activity Team/Git Tutorial: Difference between revisions
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
=== Create SSH Key === | === Create SSH Key === | ||
To create a key use ssh-keygen. The following command will create | |||
Skip this section if you already have an SSH key in <tt>.ssh</tt> directory that you trust. | |||
To create a key use ''ssh-keygen''. The following command will create a “dsa” key: | |||
ssh-keygen -t dsa | ssh-keygen -t dsa | ||
| Line 23: | Line 26: | ||
ssh-keygen -t rsa | ssh-keygen -t rsa | ||
The | The key will be stored as two files in the hidden <tt>.ssh</tt> directory. | ||
<tt>id_dsa</tt> is your private key. Only you should have access to this private key. | |||
<tt> | <tt>id_dsa.pub</tt> is your public key. <tt>id_dsa</tt> is your private key. Only you should have access to this private key. Access to the key will grant access to Gitorious in your name. For example, here is a list of files in the <tt>.ssh</tt> directory of user strom: | ||
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 | ||
You should only need to create a key once, unless you change to another system, or you think your private key was compromised. If you do it again, you must also add the new key to Gitorious in the next section. | |||
=== Add SSH Key === | === Add SSH Key === | ||