7

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.

StealthTrails
  • 2,281
  • 8
  • 43
  • 67

2 Answers2

8

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.

Community
  • 1
  • 1
Ashutosh Jindal
  • 18,501
  • 4
  • 62
  • 91
  • thank you man, your answer and @Dan's answer [here](http://serverfault.com/questions/194567/how-do-i-tell-git-for-windows-where-to-find-my-private-rsa-key) solved my issue. Especially this step "Note: Comments indicate that this doesn't work in all cases. You may need to copy the OpenSSH key to Program Files\Git\.ssh\id_rsa (or Program Files (x86)\Git\.ssh\id_rsa)." – StealthTrails Nov 20 '16 at 11:33
3

In case someone faced this problem in Windows -> Git Bash and the above didnt work, when copying from the website and pasting (CNTRL + Insert in Git Bash) directly from the web it inserts some special characters at the start of the string, leading to this error:

\302\226git@gitlab.com: Permission denied (publickey,keyboard-interactive).

Make sure you delete those special characters, or try manually typing the command.

AkuLink1
  • 123
  • 10