tags:

views:

1392

answers:

2

I have to check some code and run it. I have the URL:

svn+ssh://[email protected]/home/svn/project/trunk

I have a file with their private key. What do I do to get this code?

A: 

Add the private key to your ~/.ssh/authorized_keys and then run ssh-agent $SHELL; ssh-add;, and then the svn co of that URL should work.

Swaroop C H
Your private keys _do not_ go in ~/.ssh/config.
ephemient
Oops, you're totally right, that should have been `authorized_keys`.
Swaroop C H
+2  A: 

The private key goes on the client machine, often named as ~/.ssh/id_rsa, ~/.ssh/id_dsa, or ~/.ssh/identity depending on the SSH version and the type of key. However, you can just use ssh -i path/to/private.key.

This is presuming that the corresponding public key exists on the server in ~/.ssh/authorized_keys, and that your local machine is running the OpenSSH client. If you are using PuTTY on Windows, simply open up the Pageant program, and import the key via the GUI.

ephemient