Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

350.1. ksshaskpass-6.8.2

SSH passphrase prompt for ssh-add and git, keeping passphrases in the session's secret store

6.8.2-1 · GPL-2.0-or-later AND BSD-3-Clause AND CC0-1.0 · 0.2 SBU · 96.7 KiB, 6 files · 50_desktop, 27 of 92 · ports/core/security/ksshaskpass

Homepage: https://invent.kde.org/plasma/ksshaskpass

Why it is in KDOS. The comment above it in script/phases/50_desktop/packages.txt:

The passphrase prompt ssh-add and git use, keeping passphrases in the session's secret store.

ksshaskpass is the passphrase prompt OpenSSH runs when a program asks for a key’s passphrase with no terminal to ask on: ssh-add started at login, ssh or git started from a launcher. It shows a Qt dialog, answers the prompt on its standard output, and can keep the passphrase in the session’s secret store through qtkeychain, so the next prompt for the same key is answered without asking.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qtkeychain, kconfig, kcoreaddons, ki18n, kwidgetsaddons, kdoctools.

Required by (1): kde-plasma.

Sources: ksshaskpass-6.8.2.tar.xz (36.5 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install ksshaskpass'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: ksshaskpass.

Directories: /usr/share/licenses/ksshaskpass.

OpenSSH runs the program named by SSH_ASKPASS when it has no terminal to ask on and either DISPLAY or WAYLAND_DISPLAY is set; the Plasma session sets both, so a key added from a launcher or an autostart entry is asked for in this dialog. With SSH_ASKPASS_REQUIRE=prefer OpenSSH asks through the dialog even when it has a terminal, and with force even when no display is set. Git runs the same program for its own prompts when GIT_ASKPASS and core.askPass are unset. The Plasma session’s environment script, /usr/share/kdos/xdg/plasma-workspace/env/kdos.sh, sets SSH_ASKPASS=/usr/bin/ksshaskpass when nothing has set it, and leaves SSH_ASKPASS_REQUIRE unset, so ssh in a terminal still asks there.

The install puts a hidden desktop entry, org.kde.ksshaskpass.desktop, in /usr/share/applications: it gives the prompt’s window its name and icon and is not a launcher.

qtkeychain keeps a passphrase in the session’s secret store, which in the Plasma session is ksecretd from kwallet.