使用 GPG 密钥进行 SSH 身份验证

使用 GPG 密钥进行 SSH 身份验证

我正在尝试使用我的身份验证子密钥作为 SSH 身份。我已让 ssh-add 显示包含此子密钥的智能卡,但当我尝试 ssh 时,它似乎没有使用此子密钥作为身份。

当使用 ssh 进行ssh -vvv

debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/wilhelm/.ssh/id_rsa
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug1: Offering ED25519 public key: /home/wilhelm/.ssh/id_ed25519

ssh-add -l

4096 SHA256:*** cardno:*** (RSA)
4096 SHA256:*** (none) (RSA)
4096 SHA256:*** /home/wilhelm/.ssh/id_rsa (RSA)

相关内容