These instructions were written for programmers of the epics-pvdata sourceForge project, but are probably general to any sourceForge project.
They're based on reference instructions at SourceForge. Also, they're written for Mac OS X command line, but any unix is probably the same, so for "mac" read, your local machine.
On your mac in your user account, execute ssh-keygen and follow the prompts. You
want a the file
~/.ssh/id_dsa.pub when you've finished (see the
instructions at SourceForge).
% ssh-keygen -t dsa -C "email@example.com"
Install your key into your sourceforge account:
If you can, use ssh itself (see below if this doesn't work for you):
% ssh -i /Users/greg/.ssh/id_dsa.pub firstname.lastname@example.org email@example.com's password: ****** Welcome to *.hg.sourceforge.net This is a restricted Shell Account You cannot execute anything here. Connection to epics-pvdata.hg.sourceforge.net closed.
Or, if that above doesn't work, use the manual mechanism given on your
Sourceforge Account Services page. Copy and paste the contents of your
~/.ssh/id_dsa.pub file, as created by ssh-keygen above, into the window provided in your account
services page as described in "SSH Key Posting" off the
reference instructions at SourceForge.
Update your ssh config file to specify that for the epics-pvdata
sourceforge site at least, to use passwordless authentication. That is, add the following lines to your
Host epics-pvdata.hg.sourceforge.net PreferredAuthentications publickey IdentityFile /Users/<your computer username>/.ssh/id_dsa <==edit User <your sourceforge username> <== edit
hg pullshould work without a password