read

If you develop on more than one Unfuddle account you’ll probably need separate identities for each account. Unfortunately git by default will only offer a single public key to authenticate you, and each Unfuddle account needs its own public key.

Here’s how to configure your SSH client to offer more than one public key to Unfuddle when you come to authenticate:

  1. Make sure you have a key pair for each Unfuddle account you will be using. To generate a new key pair, use ssh-keygen and give each key pair a unique name
  2. Create a file called config in your ~/.ssh folder
  3. Edit it to look something like this:
# Tell SSH to different key pairs for different hosts
# Useful for e.g. Unfuddle when using several accounts
# because you can only use your default public key
# for one of the accounts
Host other.unfuddle.com
IdentityFile ~/.ssh/other_id_rsa

Host other2.unfuddle.com
IdentityFile ~/.ssh/other2_id_rsa

Host *
IdentityFile ~/.ssh/id_rsa

There should be a Host entry for each Unfuddle account for which you have used a different key pair. The final * section tells SSH to use your default key pair for all other connections.