Netbeans,git,拒绝主机密钥? [英] Netbeans, git, reject hostKey?

查看:22
本文介绍了Netbeans,git,拒绝主机密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试使用 Git 插件运行 Netbeans.如果我想从 Netbeans 中克隆我的 git 存储库,我会收到错误消息:reject hostKey: [repository url]并且克隆中止.

I'm currently trying to get Netbeans with the Git plugin working. If I want to clone my git repository from within Netbeans I get the error message: reject hostKey: [repository url] and the cloning aborts.

这是什么意思,我该如何解决?

What does this mean and how do I fix it?

推荐答案

您需要检查哪些用户正在运行 NetBeans,然后确保您的 ssh 私钥和公钥(id_rsaid_rsa.pub) 位于该用户的关联 HOME/.ssh 中.

You need to check what user is running NetBeans, and then make sure your ssh private and public keys (id_rsa and id_rsa.pub) are in the associated HOME/.ssh of that user.

请注意,在 Windows 上,HOME 默认未定义,因此您需要在运行 Netbeans 之前设置该变量.

Note that on Windows, HOME isn't defined by default, so you need to set that variable before running Netbeans.

这篇关于Netbeans,git,拒绝主机密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆