I created a git repository on assembla. Granted I have not created one there in a long time. That’s why I forgot about the rsa key hash. In fact, only after I went into my profile to check did I see that I already had one for my iMac there.
I had just created the repo on assembla. I followed their instructions to create a local repository and push it to the remote.
I did
git remote add assembla git@git.assembla.com:appname.git
No errors. When I did
git push assembla master
I got
Permission denied (publickey,keyboard-interactive).
fatal: The remote end hung up unexpectedly
This is most likely because you have set up ssh keys. When you get that on assembla, here’s how to fix it.
- Login to assemba
- Go to your profile (Edit Profile)
- Click on the link “Manage SSH Keys” on the left navigation bar
- In a text editor open ~/.ssh/id_rsa.pub
- Copy the entire contents (no matter what it says) into the “Add a key” text box in your assembla profile.
- Try the command now. It will work.

2 comments
JohnVarghese
April 26, 2012 at 11:28 pm (UTC -8) Link to this comment
Here’s another reason you might get this error. I got it just now. I had logged in as myself then did a sudo -s. When I pushed as root, I got this error. Obviously my .ssh folder did not have the right keys.
JohnVarghese
July 6, 2012 at 9:11 am (UTC -8) Link to this comment
Oh, and if you forget how to generate an id_rsa.pub file here is how to do it.
ssh-keygen -t rsa