[Bug 81067] using kwallet as an ssh-agent

Matt Whitlock matt at whitlock.name
Mon Oct 6 15:10:19 CEST 2008


http://bugs.kde.org/show_bug.cgi?id=81067





--- Comment #24 from Matt Whitlock <matt whitlock name>  2008-10-06 15:10:13 ---
Created an attachment (id=27714)
 --> (http://bugs.kde.org/attachment.cgi?id=27714)
kwallet-askpass.sh

Until such time as KWallet implements the ssh-agent protocol, I have coded up
an askpass-style script to let ssh-add read passphrases from the KDE4 wallet
via D-bus.

To use it, you need to add a folder to your wallet called 'ssh-agent' and add
passwords to it, each given as its name the full absolute path to an SSH
private key file, such as '/home/wendy/.ssh/id_rsa'.  Then add an auto-start
script that calls ssh-add thusly:
SSH_ASKPASS=/path/to/kwallet-askpass.sh ssh-add < /dev/null &

Of course, the agent has to be running already.  For that, I recommend
uncommenting the lines in the agent-startup.sh and agent-shutdown.sh scripts
that come with KDE.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kdelibs-bugs mailing list