Confirmation request seems not to work
Hi,
I found this project searching for a SSH Agent working with PowerShell as well as GitBash (MSYS).
I do (currently) not use the Windows-Cert (YubiKey) features, but use it as a "normal" SSH agent. While testing, I realized, ssh-add -c <key-file> does not work as expected. The key gets added, but no confirmation has to be done on usage. I took the following steps in a GitBash as PoC:
$ ssh-add -c <path-to-key-file>
Enter passphrase for <path-to-key-file> (will confirm each use):
Identity added: <path-to-key-file> (<name-of-key>)
The user must confirm each use of the key
When subsequently opening a ssh connection using this key from the agent, no confirmation is needed.
Is there any plan to implement the -c flag correctly? I tested -t (timeout) and this seems to work properly.
Further investigation of mine showed, that the problem seems to be in the library. Thus I opened https://github.com/golang/go/issues/47533.