«

»

Print this Post

Permission denied (publickey,keyboard-interactive)

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.

  1. Login to assemba
  2. Go to your profile (Edit Profile)
  3. Click on the link “Manage SSH Keys” on the left navigation bar
  4. In a text editor open ~/.ssh/id_rsa.pub
  5. Copy the entire contents (no matter what it says) into the “Add a key” text box in your assembla profile.
  6. Try the command now. It will work.

 

Permanent link to this article: http://www.johnvarghese.com/permission-denied-publickeykeyboard-interactive/

2 comments

  1. JohnVarghese

    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.

  2. JohnVarghese

    Oh, and if you forget how to generate an id_rsa.pub file here is how to do it. 
    ssh-keygen -t rsa

Leave a Reply