<?xml version="1.0" encoding="UTF-8"?>
<page>
  <created-at type="datetime">2009-03-20T21:47:14Z</created-at>
  <description>added link to cygwin docs</description>
  <id type="integer">1102</id>
  <name>GeneratingAnSSHKey</name>
  <number type="integer">22</number>
  <person-id type="integer">7</person-id>
  <text>[[Home | &amp;raquo; Project Kenai Documentation and Training]] &amp;nbsp; &amp;nbsp; [[Howdoi | &amp;raquo; How Do I ...]]

=Generating an SSH Key=
You'll need to generate a Secure Shell Protocol (SSH) key if you use the Git source code management system. Mercurial repositories are also available though SSH as a more secure and reliable alternative to the HTTPS access mechanism. SSH provides higher performance and authentication via public key cryptography rather than with a password. 

To access your repositories via SSH, first ensure that you have an SSH client available on your local system, as described below. You use that client to generate a pair of cryptographic keys, which you use in place of a password when you authenticate to our servers.

The type of key to generate is an SSH2 key. You can generate either an RSA or a DSA key. Both will work on Kenai.com. After you use your SSH client on your system to generate an SSH key pair, you copy the public key to the [[ProfileSettings#SSH_Keys|SSH Keys tab]] in your personal profile. Subsequently, you need to use the SSH client to access the repository. 

Most UNIX, Linux, and Mac systems come with a built-in SSH client, OpenSSH. 
* For GitHub instructions on how to generate a key on Mac OSX systems, see [http://help.github.com/mac-key-setup/].
* For GitHub instructions on how to generate a key on Linux systems, see [http://help.github.com/linux-key-setup/].

If you have a Microsoft Windows system, there are a number of SSH clients you can run. 
* If you plan to work with GIT, see the instructions for using Git Bash at [http://help.github.com/msysgit-key-setup/].
* For instructions on using PuTTY on Microsoft Windows, see  [[Winsshwithputty|Generating and Using an SSH Key on a Microsoft Windows Machine]]. The help files for PuTTY are well written and are a very useful resource for understanding SSH. 
* To set up Mercurial to use PuTTY with SSH, see [[Usinghg-winsshsetup|Setting Up Mercurial to Use SSH on a Microsoft Windows Machine]].
* If you plan use SSH with a Subversion repository, see  [[Usingsvn-winsshsetup|Setting Up Cygwin to Use SSH on a Microsoft Windows Machine]]
* For a list of other Windows clients, see [http://www.openssh.com/windows.html]. 

If you're new to the whole SSH thing, this blog might help you: [http://jimmyg.org/blog/2008/beginners-guide-to-ssh-keys-with-ssh2.html].</text>
  <text-as-html>&lt;p&gt;&lt;a href='&lt;?url_for_page Home ?&gt;' class='&lt;?class_for_page_link Home ?&gt;'&gt; &amp;raquo; Project Kenai Documentation and Training&lt;/a&gt; &amp;nbsp; &amp;nbsp; &lt;a href='&lt;?url_for_page Howdoi ?&gt;' class='&lt;?class_for_page_link Howdoi ?&gt;'&gt; &amp;raquo; How Do I ...&lt;/a&gt;

&lt;/p&gt;&lt;h1&gt;&lt;a name='Generating_an_SSH_Key'&gt;&lt;/a&gt;Generating an SSH Key&lt;/h1&gt;
&lt;p&gt;You'll need to generate a Secure Shell Protocol (SSH) key if you use the Git source code management system. Mercurial repositories are also available though SSH as a more secure and reliable alternative to the HTTPS access mechanism. SSH provides higher performance and authentication via public key cryptography rather than with a password. 

&lt;/p&gt;&lt;p&gt;To access your repositories via SSH, first ensure that you have an SSH client available on your local system, as described below. You use that client to generate a pair of cryptographic keys, which you use in place of a password when you authenticate to our servers.

&lt;/p&gt;&lt;p&gt;The type of key to generate is an SSH2 key. You can generate either an RSA or a DSA key. Both will work on Kenai.com. After you use your SSH client on your system to generate an SSH key pair, you copy the public key to the &lt;a href='&lt;?url_for_page ProfileSettings?&gt;#SSH_Keys' class='&lt;?class_for_page_link ProfileSettings?&gt;'&gt;SSH Keys tab&lt;/a&gt; in your personal profile. Subsequently, you need to use the SSH client to access the repository. 

&lt;/p&gt;&lt;p&gt;Most UNIX, Linux, and Mac systems come with a built-in SSH client, OpenSSH. 
&lt;/p&gt;&lt;ul&gt;&lt;li&gt; For GitHub instructions on how to generate a key on Mac OSX systems, see &lt;a class='external' href=&quot;http://help.github.com/mac-key-setup/&quot;&gt;http://help.github.com/mac-key-setup/&lt;/a&gt;.
&lt;/li&gt;&lt;li&gt; For GitHub instructions on how to generate a key on Linux systems, see &lt;a class='external' href=&quot;http://help.github.com/linux-key-setup/&quot;&gt;http://help.github.com/linux-key-setup/&lt;/a&gt;.
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
If you have a Microsoft Windows system, there are a number of SSH clients you can run. 
&lt;/p&gt;&lt;ul&gt;&lt;li&gt; If you plan to work with GIT, see the instructions for using Git Bash at &lt;a class='external' href=&quot;http://help.github.com/msysgit-key-setup/&quot;&gt;http://help.github.com/msysgit-key-setup/&lt;/a&gt;.
&lt;/li&gt;&lt;li&gt; For instructions on using PuTTY on Microsoft Windows, see  &lt;a href='&lt;?url_for_page Winsshwithputty?&gt;' class='&lt;?class_for_page_link Winsshwithputty?&gt;'&gt;Generating and Using an SSH Key on a Microsoft Windows Machine&lt;/a&gt;. The help files for PuTTY are well written and are a very useful resource for understanding SSH. 
&lt;/li&gt;&lt;li&gt; To set up Mercurial to use PuTTY with SSH, see &lt;a href='&lt;?url_for_page Usinghg-winsshsetup?&gt;' class='&lt;?class_for_page_link Usinghg-winsshsetup?&gt;'&gt;Setting Up Mercurial to Use SSH on a Microsoft Windows Machine&lt;/a&gt;.
&lt;/li&gt;&lt;li&gt; If you plan use SSH with a Subversion repository, see  &lt;a href='&lt;?url_for_page Usingsvn-winsshsetup?&gt;' class='&lt;?class_for_page_link Usingsvn-winsshsetup?&gt;'&gt;Setting Up Cygwin to Use SSH on a Microsoft Windows Machine&lt;/a&gt;&lt;/li&gt;&lt;li&gt; For a list of other Windows clients, see &lt;a class='external' href=&quot;http://www.openssh.com/windows.html&quot;&gt;http://www.openssh.com/windows.html&lt;/a&gt;. 
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
If you're new to the whole SSH thing, this blog might help you: &lt;a class='external' href=&quot;http://jimmyg.org/blog/2008/beginners-guide-to-ssh-keys-with-ssh2.html&quot;&gt;http://jimmyg.org/blog/2008/beginners-guide-to-ssh-keys-with-ssh2.html&lt;/a&gt;.&lt;/p&gt;</text-as-html>
  <updated-at type="datetime">2009-12-24T01:19:11Z</updated-at>
  <wiki-id type="integer">34</wiki-id>
</page>
