ksshaskpass with a little tiny patch
  • C++ 89%
  • CMake 10.7%
  • Shell 0.3%
Find a file
2026-06-13 11:05:39 +02:00
doc GIT_SILENT: don't use deprecated cmake variable 2021-02-08 20:21:42 +01:00
LICENSES Add missing license file 2022-08-23 21:48:13 +02:00
po GIT_SILENT Sync po/docbooks with svn 2026-06-09 01:49:08 +00:00
src Just a little patch 2026-06-13 11:05:39 +02:00
.git-blame-ignore-revs Add .git-blame-ignore-revs file 2021-01-18 21:30:14 +01:00
.gitignore GIT_SILENT Add auto generated files to .gitignore 2021-05-03 15:06:13 +02:00
.gitlab-ci.yml Add xml/yaml linting 2025-02-03 08:09:05 +01:00
.kde-ci.yml CI: Require all tests to pass 2026-05-23 23:21:36 +09:30
ChangeLog Switch from KWallet to QtKeychain as backend 2025-10-17 20:45:31 +02:00
CMakeLists.txt GIT_SILENT: Bump kf ecm_set_disabled_deprecation_versions. Make sure that it compiles fine without kf 6.27 deprecated methods 2026-06-10 07:16:32 +02:00
INSTALL Initial commit of ksshaskpass 0.5.3 from tarball on kde-apps.org. 2014-11-01 14:42:02 -06:00
org.kde.ksshaskpass.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2026-06-02 02:00:58 +00:00
README Update CI and README for QtKeychain 2026-04-07 08:19:26 +00:00

Ksshaskpass is a front-end for ssh-add which stores the password of the
ssh key in secure storage via QtKeychain.
Ksshaskpass is not meant to be executed directly, you need to tell
ssh-add about it. ssh-add will then call it if it is not associated
to a terminal.
From the ssh-add manpage:
/----------------
|  DISPLAY and SSH_ASKPASS
|    If ssh-add needs a passphrase, it will read the passphrase from the
|     current terminal if it was run from a terminal.  If ssh-add does not
|     have a terminal associated with it but DISPLAY and SSH_ASKPASS are
|     set, it will execute the program specified by SSH_ASKPASS and open
|     an X11 window to read the passphrase. This is particularly useful
|     when calling ssh-add from a .xsession or related script.  (Note that
|     on some machines it may be necessary to redirect the input from
|     /dev/null to make this work.)
\----------------

This means you need to make sure to set the SSH_ASKPASS environment variable
to the path of ksshaskpass and then call ssh-add from your autostart scripts.

To add it to the KDE autostart sequence you could for example create an
executable script with the following content in ~/.kde/Autostart/ (or maybe
/.kde4/Autostart/, depending on the distribution).

/----------------
|#!/bin/sh
|
|SSH_ASKPASS=ksshaskpass ssh-add < /dev/null
\----------------