开发者

How to get netbeans working git?

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 i开发者_StackOverflowt aborts. Any idea?

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


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)


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜