如何解决"安全存储无法保存主密码"在Eclipse CDT远程应用程序中使用SSH密码调试连接?

时间:2017-08-13 08:35:48

标签: eclipse eclipse-cdt

我尝试使用Eclipse和gdbserver远程调试C程序。

我已设法使用Eclipse进行手动和公共密钥SSH身份验证,如下所述:Remote debugging C++ applications with Eclipse CDT/RSE/RDT

但是,如果我尝试使用SSH密码创建连接,则创建失败会出现一些错误弹出窗口,其中第一个是:

Secure storage was unable to save the master password

堆栈跟踪的前两行是:

java.lang.SecurityException: Unable to get DBus session bus: Could not connect: Connection refused
    at org.eclipse.equinox.internal.security.linux.LinuxPasswordProvider.saveMasterPassword(Native Method)

我得到的其他例外是​​:

No password provided.

Unable to locate secure storage module

在Eclipse网站下载的Ubuntu 16.04主机和Eclipse Oxygen 4.7.0中测试过。

一些可能相关的问题:

1 个答案:

答案 0 :(得分:16)

转到窗口>偏好>安全存储和取消选中" Linux集成(64位)",留下" UI提示"作为唯一选中的选项。

可能Eclipse正在尝试与某些本机密码提供程序集成,并且集成陷入困境。 TODO:明白为什么。

现在,下次我尝试使用密码创建连接时,会出现一个弹出窗口,要求我设置一个"主密码"。我这样做,一切正常。

enter image description here

相关问题