Archive for February 17th, 2009

Multiple Unfuddle Accounts

Posted on February 17, 2009, under Git.

I was having my own free unfuddle account and my work also had another unfuddle account. Now I had configured my public key for my work account and when I updated the same public key for my personal account, it didn’t accept it.

It throwed a error already this key is in use.

So, what the hell do I have to do? Here’s what I did to solve it….Simple steps though

STEP 1: Create another public key

ssh-keygen -t rsa -f personal_unfuddle

As you know it will generate a key and store it file name “personal_unfuddle” -f parameter is a optional parameter and it will store it in that file.

Now you have to view the generated file to update the public key in the unfuddle

cat personal_unfuddle.pub

Copy paste the key into your unfuddle account.

STEP 2:
Identifying the Key pair for the multiple account.

Create/Edit a file named “config” in youe .ssh folder

sudo vim config

Paste the following code into the config file


Host work.unfuddle.com
User git
IdentityFile ~/.ssh/id_rsa

Host personal.unfuddle.com
User git
IdentityFile ~/.ssh/personal_unfuddle

After few mins, this should start working.

Hope this helps someone