SSH-Keyset

Version 13 (Squelch, 04/10/2009 22:38)

1 1 Squelch
h1. SSH-Keyset
2 1 Squelch
3 1 Squelch
{{>toc}}
4 1 Squelch
5 1 Squelch
h2. Creating and using SSH keys
6 1 Squelch
7 7 Squelch
There are several ways to access the repositories over a secure connection using SSH (Secure Shell).
8 1 Squelch
This can be achieved using either the standalone Putty Suite installation, or the embedded tools in GitExtensions.
9 1 Squelch
10 1 Squelch
h2. Putty Suite
11 1 Squelch
12 1 Squelch
h3. Installation
13 1 Squelch
14 1 Squelch
* Install "Putty Suite":http://tartarus.org/~simon/putty-snapshots/x86/putty-installer.exe
15 1 Squelch
* Create a Key Set with PuttyGen
16 11 Squelch
** The key type should be SSH-2 RSA and 1024 bit length is recommended
17 1 Squelch
* Save the PUBLICkey and PRIVATEkey somewhere safe on your harddrive
18 1 Squelch
* Send PUBLICkey to admin (Guard the PRIVATEkey with your life, never share! :D)
19 1 Squelch
** The admin will give your account the permission to the right project, and supply you with the git clone url
20 1 Squelch
21 1 Squelch
h3. (After any reboot) if you want to access a dev-heaven.net ssh host:
22 1 Squelch
23 1 Squelch
* Load your PRIVATEkey into the PageAnt application (Part of putty suite). 
24 1 Squelch
_Incase you have a password on the PRIVATEkey, you will have to enter this everytime pageant loads your key_
25 1 Squelch
* You are recommended to add a link to autostart with the param(s) to you key file(s).
26 1 Squelch
27 1 Squelch
<pre>
28 9 kju
D:\Putty\pageant.exe "D:\Putty\my_private_key.ppk"
29 1 Squelch
</pre>
30 1 Squelch
31 1 Squelch
h3. First time connecting to a host
32 1 Squelch
33 13 Squelch
* Open a connection with putty, to the host (e.g: git@git.dev-heaven.net) *DO NOT* save it!
34 10 kju
** Click YES/Accept to accept the server key
35 10 kju
** Close Putty again
36 10 kju
* You should only have to do this once per host
37 10 kju
38 12 kju
!putty_add_git_url_once.jpg!
39 1 Squelch
40 5 Squelch
!putty_accept_server_key.jpg!