WinCryptSSHAgent icon indicating copy to clipboard operation
WinCryptSSHAgent copied to clipboard

Confirmation request seems not to work

Open guahki opened this issue 4 years ago • 1 comments

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.

guahki avatar Aug 04 '21 09:08 guahki

Further investigation of mine showed, that the problem seems to be in the library. Thus I opened https://github.com/golang/go/issues/47533.

guahki avatar Aug 04 '21 16:08 guahki