To create a key use ssh-keygen. The following command will create an “dsa” key:
+
+
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 generated key will be stored in the hidden <tt>.ssh</tt> folder.
+
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>id_dsa.pub</tt> is your public key.
+
<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:
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.