3

I want to use a repository i hosted on github but it seems like netbeans uses a wrong fingerprint. So I get an Exception everytime I try to clone the repository. Its like : UnknownHostKey: github.com. RSA key fingerprint is xxxxxxxxxxxx etc. And it aborts. Any idea?

Ive tried it with tortisegit and it works fine ... but I think it saves the key on a custom place.

12
  • Which git support do you use in Netbeans ? the millestone of Netbeans 6.10 (it's an alpha) which includes git support or nbgit.org ? What are you using as OS (linux, windows, Mac OS X) ? Commented Aug 10, 2010 at 12:17
  • I use the nbgit plugin and right now im using windows but Im working more often with OSX ... does that make any diffrence? Commented Aug 10, 2010 at 12:21
  • Which ssh key is netbeans using? Commented Aug 10, 2010 at 12:25
  • That does make a difference - does each system have its own ssh key, or do you keep them synchronized? Commented Aug 10, 2010 at 12:27
  • ok so I figured out that the key in the error message is the public key from github (16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48) and I dont know where netbeans get its own key. I have a .ssh folder in c:/users/myusername with a private and public key file. Commented Aug 10, 2010 at 12:42

2 Answers 2

1

I faced similar issue while accessing my own git server from NetBeans on windows. To fix this I created known_hosts file manually in "c:\Documents and Settings\myusername\.ssh" and put entry of my git server host. (I got this entry from other linux box from where I do ssh to git server)

After restarting NetBeans it wokred! I could clone my git repository using URL gitosis@my-git-server:my_porject

My setup -

I use NetBeans 6.9.1 on Windows XP.
In dir c:\Documents and Settings\myusername\.ssh, I have -
id_rsa
id_rsa.pub
known_hosts
(id_rsa and id_rsa.pub - same keys I was using on my linux box)
Sign up to request clarification or add additional context in comments.

Comments

1

had the same problem as you did, but actually putting the public key of the remote repository in known_hosts worked for me. I did this simply by calling ssh github.com - it will inform you about the fact, that the authenticity of the host can't be established. if you connect anyway, the host public key will be added to known hosts and after restarting netbeans, they no more report this error and work fine.

hope this helps

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.