Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
The answer:
Before the first checkout in Komodo, i should have used the git bash (clone a repo), because git bash makes a file ( ~/.ssh/known_hosts) contains the accepted host.
Then i can checkout.
So if someone would like to use Komodo IDE with private GIT repo and SSH Key:
ssh-keygen –t rsa –C "johndoe@doebrothers.com" //the e-mail address is your git providers login e-mail address/username
clip < ~/.ssh/id_rsa.pub //This will copy your public key to your clipboard
Your have to add your public key to your Git provider’s website (paste or upload it)
In the Git Bash Screen clone a repo. That will create the known_hosts file.
In Komodo, go to Preferences -> Source Code Control-> Git
Add the git.exe path
I would like to use Komodo IDE with bitbucket private GIT repository.
I generated the key with puttygen, and i can see the key in the pageant (pageant is running).
I succesfully connect to my repository with putty.
The git.exe path is ok in the Komodo preferences.
When i try to checkout, i get that error:
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I checked the keys in the registry, i found my fingerprint here:
HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys
rsa2@22:bitbucket.org
yes I got that. When you confirmed that PuTTY can connect to your server, are you using GIT? Or are you connecting over SSH? NOTE: I’m not asking about Komodo. I’m asking for confirmation that git checkout works outside of Komodo.
Ahh sorry, im new with git
Yes i connected over SSH when it was ok.
But it seems my Avast (antivirus,firewall) let only putty use SSH port, because i switched off my Avast and i get other error message:
ssh_exchange_identification: Connection closed by remote host
As i see now bitbucket.org offline. Do you reach the domain? I get 500error. I think beacuse i try to connect unsuccessfull the server banned my ip address :S
I’m not sure that BitBucket has the “ban an IP if there were some unsuccessful connections from it” policy. https://bitbucket.org works fine for me (at least a landing page). Try to disable Windows Firewall or any other firewall and see if you’re able to reach the domain.
Before the first checkout in comodo, i should have used the git bash (clone one repo), because git bash makes a file ( ~/.ssh/known_hosts) what contents the accepted host.
Then i can checkout.
So if someone would like to use Komodo IDE with private GIT repo and SSH Key:
Another clarification. @pitt, you were testing two different things. PuTTY SSH and then Git Checkout which are in no way related. Git has it’s own SSH executable hidden away in it’s install directory.
For people that come across this; Don’t use PuTTY with Git(you can if you want obviously but i don’t recommend it). It’s a pain in the butt.
Thanks for posting your solution @pitt. That is awesome. That will definitely help someone in the future.
@pitt, I’ve edited your first post because you moved the topic under Tutorials category, now it contains the question, the answer and the raw question that was the content of the first post before I’ve edited it. Thanks for the solution though.
@careyh : Yes, i know. I try both of ssh/putty method, I started with putty, but i found the solution only the SSH way Thx the clarification!
In the future i wont use the putty way.
I will forget the solution, i will very happy when i have to reintall my op.system, and i can remember with this forum