So, this is the simplest ssh-askpass for current #
GNOME (make sure to have gcr 4 installed):
#!/usr/bin/gjs -m<br>import System from 'system';<br>import GLib from 'gi://GLib';<br>import Gcr from 'gi://Gcr?version=4';<br>const prompt = Gcr.SystemPrompt.open(-1, null);<br>prompt.set_message(ARGV.join(''));<br>const res = prompt.password(null);<br>if (!res) System.exit(-1);<br>print(res);<br>
Save into a file, chmod +x, set
SSH_ASKPASS_REQUIRE=force and
SSH_ASKPASS=path/to/prompt.js (where you saved it) when running ssh (and ssh-agent itself?), enjoy working GUI prompt that allows unlocking fido2 security keys when using agent-forwarding.