Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Ardakilic/67a0d70fe0a21e1d87bc to your computer and use it in GitHub Desktop.
Save Ardakilic/67a0d70fe0a21e1d87bc to your computer and use it in GitHub Desktop.
Yubikey SSH Key Windows intermediate fix commands
taskkill /f /im kleopatra.exe
taskkill /f /im gpg-agent.exe
taskkill /f /im scdaemon.exe
"C:\Program Files (x86)\GNU\GnuPG\kleopatra.exe"
gpg-connect-agent killagent /bye
gpg-connect-agent /bye

#Yubikey (and Any Other Smartcard) SSH Connection shortcuts

In Windows envionment, not everything works out of the box especially about Yubikey. So you need to install additional tools and take additional steps.

Because of a bug, in Windows, when you unplug your smart card and re-plug, it may not run always.

These gists are simple batch commands to reset the state of gpg4Win to make your smart card available again with simple clicks, and without restarting your PC.

You may also want to create a new shortcut for gpg-connect-agent and run it on startup:

"C:\Program Files (x86)\GNU\GnuPG\gpg-connect-agent.exe" /bye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment