Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Askpass is not always used for asking for a passphrase #88

Open
X-dark opened this issue Mar 31, 2023 · 2 comments
Open

Askpass is not always used for asking for a passphrase #88

X-dark opened this issue Mar 31, 2023 · 2 comments

Comments

@X-dark
Copy link

X-dark commented Mar 31, 2023

This hardcoded string is misleading:

<string>Enter your SSH passphrase for request:</string>

In my workflow, askpass is triggered for a lot of things like asking for security key pin, for confirming host key,...

Usually, the message provided by ssh is sufficient. I think, this string can just be removed.

@adrelanos
Copy link

I am also looking for kinda a --hide-default-prompt option.

@Vladimir-csp
Copy link

Classic X11 ssh-askpass just takes prompt text strictly from a lonely $1. Single argument replaces default prompt. Single empty argument means no text. More than one argument means default text.

gnome-ssh-askpass takes prompt text from all arguments concatenated via spaces (this is not supported by classic ssh-askpass, so I would not recommend mimicking it). But given prompt also fully replaces default prompt.

gnome-ssh-askpass also has this:

SSH_ASKPASS_PROMPT
If set to confirm, show a yes-or-no prompt, defaulting to yes. If set to none,
show a prompt with only a close button. Otherwise, show an OK-or-cancel prompt,
defaulting to OK. This environment variable is typically set by ssh-add(1), and
should not normally be set manually.

And this feature is actually used by ssh-add, so one might consider it canon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants