git clone/push gives error: Permission denied (publickey,keyboard-interactive). assembla

Chaudhry Waqas picture Chaudhry Waqas · Nov 18, 2016 · Viewed 9k times · Source

I am trying to pull/push the code from a repo on assembla but I am facing this error all the times. enter image description here

I already uploaded the key to assembla account but still facing this issue.

Answer

Ashutosh Jindal picture Ashutosh Jindal · Nov 18, 2016

I followed these instructions from assembla and was able to clone a repository from there:

alt

The only thing of note is, that I had to create the following entry in ~/.ssh/config:

Host assembla Hostname git.assembla.com User git IdentityFile ~/.ssh/id_rsa_assembla IdentitiesOnly yes

followed by using the following clone command:

git clone "assembla:username^reponame.git"

From your snapshot, it would appear that you are using Windows, therefore the location of the private key (id_rsa_assembla or whatever you are using) as well as the location of the ssh_config file will depend on how you installed git. See this question.