简体   繁体   English

使用NetBeans 7.0.1推送到远程Git服务器

[英]Pushing to a remote Git server using NetBeans 7.0.1

I have a Linux server remotely, which has GIT and Gitosis configured. 我有一个远程的Linux服务器,该服务器配置了GIT和Gitosis。 The repository is at git.desytec.com/morros. 该存储库位于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: 当推入NetBeans时,我使用以下URL:git@git.desytec.com:morros / .git,但是当我单击“下一步”时,会发生此错误:

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

My local machine is running Windows 7. 我的本地计算机正在运行Windows 7。

I got the "does not support smart HTTP push" on all of my git servers. 我在所有git服务器上都收到“不支持智能HTTP推送”。 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. 我将服务器转换为通过SSH和git用户提供git服务,但直到安装了Netbeans 7.2开发版本,它仍然无法正常工作。 I used password authentication instead of SSH keys. 我使用密码认证而不是SSH密钥。

If the error message is talking about 'Hostkey', this is an error related to ssh protocol: 如果错误消息在谈论“ Hostkey”,则这是与ssh协议有关的错误:

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

If that is the case: 如果是这样的话:

(Also, consider Gitolite , since gitosis is now obsolete, has proven itself problematic in this question ) (还考虑使用Gitolite ,因为现在已经不再使用gitosis了,在这个问题上已经证明自己有问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM