Mercurial on Sourceforge is only accessible over SSH. To provide seamless pulls&pushs against SF, you are encouraged to use private/public keys within SSH. Unfortunately, SF does allow private/public key authentication over the GUI. This tutorial shows you how to propagate public keys on SF.

1. Be sure you have a valid private/public ssh key generated for the user performing the commits. A detailed description can be found under http://en.wikipedia.org/wiki/Ssh-keygen

2. Try to access your hg-repo:

felice:~ sebi$ ssh sebastiangraf@treetank.hg.sourceforge.net
sebastiangraf@treetank.hg.sourceforge.net's password: 

Welcome to *.hg.sourceforge.net

This is a restricted Shell Account
You cannot execute anything here.

Connection to treetank.hg.sourceforge.net closed.</pre>

You recognize that you are enforced to provide your password and that a connect is not successful.

3. Go to https://sourceforge.net/account/ -> Services and register the public-key as one ssh-key

4. Try to access your hg-repo a second time:

ssh sebastiangraf@treetank.hg.sourceforge.net
Last login: Wed Mar 23 07:58:26 2011 from felice.disy.inf.uni-konstanz.de

Welcome to *.hg.sourceforge.net

This is a restricted Shell Account
You cannot execute anything here.

Connection to treetank.hg.sourceforge.net closed.</pre>

5. You are finished and now allowed to push with mercurial without any password-prompts.

This tutorial is based upon https://sourceforge.net/apps/trac/cs-studio/wiki/SourceRepository