WAYPROMPT-SSH-ASKPASS(1)
π¦ WAYPROMPT-SSH-ASKPASS(1) β like, the manual page, but make it make sense π
okay so bestie, gather round, because this is the manual page for wayprompt-ssh-askpass, and it lives in the General Commands Manual section (section 1, iykyk β commands you actually type).
β¨ NAME β¨
wayprompt-ssh-askpass β a Wayland-native ssh-askpass implementation. yes. that's the whole vibe. it's giving "askpass but make it Wayland" π
β¨ SYNOPSIS β¨
wayprompt-ssh-askpass
literally that's it. no flags, no args, no drama. she just runs. π«Ά
β¨ DESCRIPTION β¨
so the wayprompt-ssh-askpass executable that this very manual page is describing is, like, the ssh-askpass implementation built on top of wayprompt. iconic behaviour honestly.
if you want the general tea on wayprompt itself β what it is, how it works, all that β go read wayprompt(1). she's the main character, this page is the spin-off. π
β¨ USE WITH SSH β¨
okay so here's where it gets real. to use wayprompt-ssh-askpass as the askpass program for ssh(1) β and for the programs that wrap it, like git(1) or rsync(1) β you gotta set and export the SSH_ASKPASS env var, and point it at the path to the wayprompt-ssh-askpass executable. no cap, both steps, "set" and "export", don't skip the export. π€
but wait, there's a catch (there's always a catch bestie): by default, ssh will only use the askpass program you configured if it is not attached to a terminal. so if you're in a terminal she's like "no thanks, I'll just prompt you myself".
to force ssh to always use the askpass program, set and export:
SSH_ASKPASS_REQUIRE=force
and then she has no choice. slay. π
β¨ RETURN VALUE β¨
wayprompt-ssh-askpass will exit with one of these values, and you will respect them:
0β the user triggered "ok". and how? either by pressing Enter or by clicking the button. both valid, both blessed. β1β the user triggered "cancel". either by pressing Escape or by clicking the button. or β plot twist β an error occured. π yeah, cancel and error share a home, that's just how it is.
fr fr, if you get a 1 you can't tell from the exit code alone whether your bestie hit Escape or whether something genuinely broke. that's canon, not me being dramatic. π
β¨ AUTHOR β¨
Leon Henrik Plickat πΈ β the genius behind all of this, we stan.
β¨ SEE ALSO β¨
wayprompt(1), wayprompt(5), ssh(1) β go read them, they're the supporting cast and they ate. π
aaand that's the whole page, bestie! π§ source/version: git.sr.ht/~leon_plickat/wayprompt, dated 2024-03-19, and it's a WAYPROMPT-SSH-ASKPASS(1) situation through and through. mwah π
π¦ where this page comes from
- nixos 26.05: wayprompt 0.1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms