Skip to main content

Configure SSH keys for Different Assembla Accounts

Toshi Dávila avatar
Written by Toshi Dávila
Updated over 5 months ago

You can configure your SSH keys for different Assembla accounts using command line.

Creating a new key 

When creating a new SSH key, be careful that you don’t overwrite your existing key for your personal account.

When prompted to save the file, use id_rsa_user2.

Use the following command to create a new SSH key:

ssh-keygen -t rsa -C "user2@user2.com"

Add these new keys using the ssh-add command:

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

Modifying the SSH configuration

 Use the following command to create a config file:

cd ~/.ssh/
touch config

Next, use the following commands to add host data:

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

Configuring Git for a new global username

Use the following commands to configure Git for a new global username:

git config --global user.name "user2"
git config --global user.email "user2@user2.com"


For example:

git config --global gshabbir
git config --global gulam@assembla.com

Pushing your files using a normal Git flow

Once you complete the previous steps, you are done! You now can push your files using a normal Git process flow.

Have questions? Email us at support@assembla.com

Did this answer your question?