使用 FIDO2 作为 SSH 身份验证
0. 简介FIDO2 在 OpenSSH 8.2 版本中可用,比 OpenPGP 方便得多。
Section titled “0. 简介FIDO2 在 OpenSSH 8.2 版本中可用,比 OpenPGP 方便得多。”1. 前提条件- Yubikey 设备或其他支持 FIDO2 的设备。
Section titled “1. 前提条件- Yubikey 设备或其他支持 FIDO2 的设备。”2. 配置身份
Section titled “2. 配置身份”(1).使用常驻模式生成密钥
Section titled “(1).使用常驻模式生成密钥”ssh-keygen -t ed25519-sk -O resident -f ~/.ssh/id_ ed25519-sk(2)。将私钥上传到服务器
Section titled “(2)。将私钥上传到服务器”2.使用FIDO2
Section titled “2.使用FIDO2”(1).识别私钥
Section titled “(1).识别私钥”ssh-add -K(2)。检查已加载的密钥
Section titled “(2)。检查已加载的密钥”ssh-add -L参考文献[1].https://blog.bloade.com/2022/03/20/%E4%B8%BAopenssh%E9%85%8D%E7%BD%AEfido2%E8%AE%A4%E8%AF%81/
Section titled “参考文献[1].https://blog.bloade.com/2022/03/20/%E4%B8%BAopenssh%E9%85%8D%E7%BD%AEfido2%E8%AE%A4%E8%AF%81/”[2].SSH 配置