Common Public Key Infrastructure

How to configure Eclipse, Aptana, TortiseSVN with OpenSSH and public keys.

In other words, make your life easier.

User names

If possible make sure that you have the same user name on all machines.

Software you need

Install OpenSSH (implemented on every platform)

 

Key Generation

Generate a key on a client machine (development machine or your laptop)

 

0. Make sure that .ssh directory exists in your home directory (e.g. c:\documents and settings\bszlachta\.ssh)

 

1. Execute the command below in your home directory (on windows c:\documents and settings\user name)

ssh-keygen -q -f .ssh/id_rsa -t rsassh-keygen -q -f .ssh/id_rsa -t rsa

 

2. Edit the id_rsa.pub file and copy your public key to your clipboard (mine look like this)

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAy00ugUQLFMNfzAEhDTROhj1jowtzvRMqWjcaT1Wm1sLH4tBWqrYvPVO+A+Z2mTBi72mznaSu0tr2CMV+FTZcusOuedCtxUgqNNbsAwmMggOyDOCSm31yRblYgQub/YxQyfALLe+VYc22T58xlZvSpD1W0Y17wrf4DeBe3t38H5k= bs@bernard

 

This is public key and you can share it with every one. Keep you private keep (id_rsa file) in a save place.

 

3. Long into svn server (nobleprog.co.uk in our case)

 

4. Make sure that your .ssh directory in your home directory has permission 700 (if not, execute chmod 700 .ssh from your home directory)

 

5. Make sure that tyou .ssh/authorized_keys file has 600 permission (if not, exeute chmod 600 .ssh/authorized_keys)

If you do not have this file, please create it and change permission apropriately.

 

6. Paste your public key into .ssh/authorized_keys file

 

Now you should be able to connect without supplying a password.