subversion客户端加密密码通过gnome-keyring为ssh(唯一)客户端

时间:2011-08-12 23:13:22

标签: svn encryption ssh passwords gnome

我希望subversion在Fedora服务器上加密我的密码而不运行gnome桌面。然而,我确实从gnome GUI开始进行健全性测试,并将正常模式执行到:

〜/的.subversion /配置

password-stores = gnome-keyring
store-passwords = yes

〜/的.subversion /服务器

[global]
store-passwords = yes
store-plaintext-passwords = no

然后我删除了~/.subversion/auth目录,执行了svn操作和presto,密码存储在gnome-keyring中而不是纯文本。然后我ssh到同一台服务器并运行:

export `gnome-keyring-daemon`

这给了我一个有趣的错误:

gnome-keyring-daemon: couldn't lookup ssh component setting: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Not running within active session)gnome-keyring-daemon: couldn't lookup pkcs11 component setting: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Not running within active session)

此时我被困住了。我可以说的另一件事是,当gnome桌面正在运行时,我可以在ssh客户端上导出DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-oCE5teZHWJ,guid=39013abab7d3f9e97422b8d94e45a9c2并且可以正常工作。

1 个答案:

答案 0 :(得分:4)

点击此处:http://technicalprose.blogspot.com/2011/06/using-subversion-with-gnome-keyring.html

Mark Ba​​nnister有很好的指导和一个很好的脚本,可以将它们整合在一起。