Pushing to a remote Git server using NetBeans 7.0.1

若如初见. 提交于 2019-12-11 08:34:53

问题


I have a Linux server remotely, which has GIT and Gitosis configured. The repository is at git.desytec.com/morros. The URL requires authentication because I don't want it to be viewed by others.

When pushing in NetBeans, I use this URL: git@git.desytec.com:morros/.git but when I click Next, this error occurs:

git@git.desytec.com:morros/.git: reject HostKey: git.desytec.com

My local machine is running Windows 7.


回答1:


I got the "does not support smart HTTP push" on all of my git servers. I converted my server to serve git via SSH and a git user, and it still didn't work until I installed the development version of Netbeans 7.2. I used password authentication instead of SSH keys.




回答2:


If the error message is talking about 'Hostkey', this is an error related to ssh protocol:

ssh://git@git.desytec.com:morros/.git

If that is the case:

  • check your user, user HOME, public and private keys as mentioned in "Netbeans, git, reject hostKey?".
  • Make sure this isn't related to a 7.0.1 Netbeans bug.
  • And make sure your known_hosts file is up to date.

(Also, consider Gitolite, since gitosis is now obsolete, has proven itself problematic in this question)



来源:https://stackoverflow.com/questions/8144346/pushing-to-a-remote-git-server-using-netbeans-7-0-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!