win11安装配置Gpg4win,使putty、openssh、git支持yubikey 5 nfc

说明

win11上安装Gpg4win、openssh、git,用yubikey 5 nfc实现ssh免密登陆,git签名。

所需软件

配置

修改C:\Users\当前用户名\AppData\Roaming\gnupg目录下面gpg-agent.conf文件,没有就创建,添加以下内容,换行符LF:

enable-ssh-support
enable-putty-support
enable-win32-openssh-support
use-standard-socket
default-cache-ttl 600
max-cache-ttl 7200

重启gpg-agent:

gpg-connect-agent killagent /bye
gpg-connect-agent /bye

测试

openssh登陆
putty登陆
git登陆