Building a Lightweight GTK4 ssh-askpass in Zig for Hardened Gentoo

A GTK4 SSH-askpass in Zig

Building a Lightweight GTK4 ssh-askpass in Zig for Hardened Gentoo

I developed a custom ssh-askpass tool using Zig and GTK4 to avoid heavy X11 or KDE dependencies on my hardened Gentoo system. Existing options in the Portage tree either required full desktop stacks or failed to compile without X support. This lightweight solution handles SSH key passphrases for non-TTY scenarios like Go builds without bloating my minimal Sway environment.

I did not want a full KDE stack on the machine just to type the occasional passphrase.

More from this day

2026-07-31