Skip to main content
All CollectionsUsing GitGetting Started
Configure SSH keys for Different Assembla Accounts
Configure SSH keys for Different Assembla Accounts
Toshi Dávila avatar
Written by Toshi Dávila
Updated over a week ago

Create a new key 

Use the following command:

ssh-keygen -t rsa -C ""

Be careful that you don’t overwrite your existing key for your personal account. Instead, when prompted, save the file as id_rsa_user2.

Add these new keys with ssh-add command:

ssh-add ~/.ssh/id_rsa_user1
ssh-add ~/.ssh/id_rsa_user2

Modify the SSH config:

 Create a config file:

cd ~/.ssh/
touch config


Add the following data:

 User Git
 IdentityFile ~/.ssh/user1
Host git.assembla-user2
 User Git
 IdentityFile ~/.ssh/user2

Configure Git for a new global username:

git config --global "user2"
git config --global ""


git config --global gshabbir
git config --global

Push your files using a normal Git flow.

You're done!

Have questions? Email us at

Did this answer your question?