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

Adding key with confirmation option to ssh-agent gives "agent refused operation" #2314

Open
3 tasks done
wondering639 opened this issue Dec 7, 2024 · 2 comments
Open
3 tasks done

Comments

@wondering639
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

Try adding a key with the -c (confirmation) option, it will fail with "agent refused operation"

PS C:\Users\myuser> ssh-add -c $env:USERPROFILE/.ssh/mykey
Enter passphrase for C:\Users\myuser/.ssh/mykey (will confirm each use):
Could not add identity "C:\Users\myuser/.ssh/mykey": agent refused operation

Expected behavior

ssh agent should not refuse this operation (-> it should support it)

Actual behavior

buggy or likely not supported at all, even though the option is there on ssh-add?

Error details

No response

Environment data

not relevant

Version

OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

Visuals

No response

@tgauth
Copy link
Collaborator

tgauth commented Dec 9, 2024

-c relies on ssh-askpass, which does not have a direct Windows equivalent, so this is not supported currently.
We can improve the error message to make this clearer.

@wondering639
Copy link
Author

-c relies on ssh-askpass, which does not have a direct Windows equivalent, so this is not supported currently. We can improve the error message to make this clearer.

thanks, improving the error message would be a good first usability improvement, but what about adding a ssh-askpass equivalent for Windows? That would give improved security, can that be noted as a feature request?

@StevenBucher98 StevenBucher98 added the Issue-Enhancement Feature request label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants