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

2

8

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.

Senile answered 18/11, 2016 at 18:36 Comment(4)
ssh -vvv [email protected]. But did you try your provider's support line?Poteet
@AlexanderPogrebnyak what is this command for?Senile
To troubleshoot your 'ssh' connection issuesPoteet
@AlexanderPogrebnyak this is what I got after running the command prntscr.com/d8z1mcSenile
C
9

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.

Chichihaerh answered 18/11, 2016 at 22:6 Comment(1)
thank you man, your answer and @Dan's answer here 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)."Senile
P
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\[email protected]: Permission denied (publickey,keyboard-interactive).

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

Pled answered 14/5, 2021 at 15:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.