README
1Ksshaskpass is a front-end for ssh-add which stores the password of the
2sh key in KWallet.
3Ksshaskpass is not meant to be executed directly, you need to tell
4ssh-add about it. ssh-add will then call it if it is not associated
5to a terminal.
6From the ssh-add manpage:
7/----------------
8| DISPLAY and SSH_ASKPASS
9| If ssh-add needs a passphrase, it will read the passphrase from the
10| current terminal if it was run from a terminal. If ssh-add does not
11| have a terminal associated with it but DISPLAY and SSH_ASKPASS are
12| set, it will execute the program specified by SSH_ASKPASS and open
13| an X11 window to read the passphrase. This is particularly useful
14| when calling ssh-add from a .xsession or related script. (Note that
15| on some machines it may be necessary to redirect the input from
16| /dev/null to make this work.)
17\----------------
18
19This means you need to make sure to set the SSH_ASKPASS environment variable
20to the path of ksshaskpass and then call ssh-add from your autostart scripts.
21
22To add it to the KDE autostart sequence you could for example create an
23executable script with the following content in ~/.kde/Autostart/ (or maybe
24/.kde4/Autostart/, depending on the distribution).
25
26/----------------
27|#!/bin/sh
28|
29|SSH_ASKPASS=ksshaskpass ssh-add < /dev/null
30\----------------