-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Open
Labels
featureThis issue/PR relates to a feature request.This issue/PR relates to a feature request.has_prThis issue has an associated PR.This issue has an associated PR.needs_triageNeeds a first human triage before being processed.Needs a first human triage before being processed.
Description
Summary
openssh sets a SSH_ASKPASS_PROMPT env var to help instruct the askpass program what to do. I've looked through the code, and believe it supports:
confirm- yes/no questionnone- information only?''empty or missing, anything else? - input
An example implementation of using this can be found at https://github.com/openssh/openssh-portable/blob/94bf1154b4132727114f222a587daeac101f1f5b/contrib/gnome-ssh-askpass2.c#L172-L185
This may be more reliable that only looking at certain messages, although it is probably best to leave the regex alone, just to continue to ensure behavior matching with sshpass.
Issue Type
Feature Idea
Component Name
lib/ansible/cli/_ssh_askpass.py
Additional Information
NA
Code of Conduct
- I agree to follow the Ansible Code of Conduct
Metadata
Metadata
Assignees
Labels
featureThis issue/PR relates to a feature request.This issue/PR relates to a feature request.has_prThis issue has an associated PR.This issue has an associated PR.needs_triageNeeds a first human triage before being processed.Needs a first human triage before being processed.