使用 Netbeans 和 Git 的 SSH 问题
我已经查看了其他人关于此问题的其他帖子,但在让 ssh 与 netbeans 和 netbeans 一起使用时仍然遇到问题。 Windows 7 上的 git。我是 git 新手,所以我确信我在某个地方遗漏了一些东西。
我已经在我的 Ubuntu 服务器上完成了 init git
。我还在系统属性->高级->环境变量中的“用户名的用户变量”下设置了 %HOME%
,并在我为 %HOME%
定义的路径。现在我从哪里可以获得密钥文件?我将它们从 Ubuntu 服务器复制到那里,但是当我尝试使用 ssh 通过 netbean 连接时,它仍然显示
ssh://[电子邮件受保护]/git: 拒绝 HostKey: 200.200.200.111
我在这里做错了什么?
I have looked at the other posts from the other folks regarding this issue but I still have problems getting ssh to work with netbeans & git on windows 7. I am new to git so I am sure I am missing something somewhere.
I have done init git
on my Ubuntu server. I have also set a %HOME%
under the "user variables for username" in system properties->advanced->environment variables and created a .ssh
folder in the path that I defined for %HOME%
. Now where so I get the key files? I copied them from the Ubuntu server to there but when I am trying to connect by netbean using ssh it still says
ssh://[email protected]/git: reject HostKey: 200.200.200.111
What do I do wrong here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是 NetBeans 7.0.1 的一个已知错误。
Bug 199263 - 无法仅使用 ssh 公钥/私钥连接到远程存储库
以下是其错误数据库的链接:
http://netbeans.org/bugzilla/show_bug。 cgi?id=199263
看起来它已在下一版本 (7.1) 中修复。我尝试过,它对我有用。这是我获得最新开发版本的地方:
http://bits.netbeans.org/ download/trunk/nightly/latest/
请记住,开发版本可能存在一些稳定性问题。
This is a known bug with NetBeans 7.0.1.
Bug 199263 - Cannot connect to remote repositories with just ssh public/private keys
Here is the link to their bug database:
http://netbeans.org/bugzilla/show_bug.cgi?id=199263
Looks like it has been fixed for the next release (7.1). I tried it and it worked for me. Here is where I got the latest dev build:
http://bits.netbeans.org/download/trunk/nightly/latest/
Remember, dev builds may have some stability problems.
我手边没有 Windows 也没有 Netbeans,但该消息看起来 200.200.200.111 主机不在
known_hosts
文件中。尝试从控制台执行ssh 200.200.200.111
,它会询问您是否信任主机的指纹,回答“是”,它将存储在known_hosts
文件中。I've no Windows nor Netbeans at hand here, but that message looks like the 200.200.200.111 host is not in the
known_hosts
file. Try doingssh 200.200.200.111
from the console, it should ask if you trust the hosts' fingerprint, answer yes and it will be stored inknown_hosts
file.