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

Not working, Windows 11 #17

Open
desultory-zz opened this issue Oct 17, 2022 · 7 comments
Open

Not working, Windows 11 #17

desultory-zz opened this issue Oct 17, 2022 · 7 comments

Comments

@desultory-zz
Copy link

I'm not sure what I'm doing wrong here, I've added the path to my ssh config and added the environment variable and it still doesn't seem to be working:

C:\Windows\System32>ssh-keygen -t  ecdsa-sk
Generating public/private ecdsa-sk key pair.
You may need to touch your authenticator to authorize key generation.
Key enrollment failed: unknown or unsupported key type

C:\Windows\System32>echo %SSH_SK_PROVIDER%
C:\Users\desu\bin\winhello.dll

C:\Windows\System32>type C:\Users\desu\.ssh\config
PKCS11Provider "C:\Program Files\Yubico\Yubico PIV Tool\bin\libykcs11.dll"
SecurityKeyProvider "C:\Users\desu\bin\winhello.dll"
C:\Windows\System32>
@tavrez
Copy link
Owner

tavrez commented Oct 17, 2022

Windows version of OpenSSH is not configured to support security keys, you have to get git for windows, msys, or newer version of Windows OpenSSH to use security keys

@desultory-zz
Copy link
Author

desultory-zz commented Oct 18, 2022

Windows version of OpenSSH is not configured to support security keys, you have to get git for windows, msys, or newer version of Windows OpenSSH to use security keys

where do I obtain this newer version?


I'd prefer to use utilities that are standard/portable as possible. It's my understanding that there are some changes coming to the windows openssh agent that makes it support security keys better? Same with gpg?

@tavrez
Copy link
Owner

tavrez commented Oct 18, 2022 via email

@tavrez
Copy link
Owner

tavrez commented Oct 18, 2022

It's my understanding that there are some changes coming to the windows openssh agent that makes it support security keys better?

Well, not better, they just added support for FIDO keys in their newer versions

@desultory-zz
Copy link
Author

desultory-zz commented Oct 18, 2022

https://github.com/PowerShell/Win32-OpenSSH/releases

On Tue, Oct 18, 2022 at 3:32 AM Zen @.> wrote: Windows version of OpenSSH is not configured to support security keys, you have to get git for windows, msys, or newer version of Windows OpenSSH to use security keys where do I obtain this newer version? — Reply to this email directly, view it on GitHub <#17 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFM2DPJDKTA5VOL6GRFXHTWDXSIPANCNFSM6AAAAAARHDI22Q . You are receiving this because you commented.Message ID: @.>

Thanks for that info, but the last release looks like it was from march. I considered trying to compile it but have little experience building software for/on Windows so I may just wait for it to hit the binary release on windows unless it's easier than I think

Oh, I see that old release does support it, I thought it was a more recent development, I think I'll try that. thanks

@desultory-zz
Copy link
Author

I'll note that to use this, you need to uninstall the windows component openssh because it lives in system32 and a reboot is required for this to complete

@desultory-zz
Copy link
Author

new errors...

c:\Program Files\OpenSSH>ssh-keygen -t ecdsa-sk -O resident -O application=ssh:yubi -O verify-required -vv
Generating public/private ecdsa-sk key pair.
You may need to touch your authenticator to authorize key generation.
debug1: find_helper: using "c:\\Program Files\\OpenSSH\\ssh-sk-helper.exe" as helper
debug1: client_converse: helper returned error -4
Key enrollment failed: invalid format

c:\Program Files\OpenSSH>ssh -V
OpenSSH_for_Windows_8.9p1, LibreSSL 3.4.3

c:\Program Files\OpenSSH>

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

2 participants