当我尝试使用 rsa 密钥对进行 ssh 时,出现以下错误:
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:2zjgjRVRDdbdfmjqip0o7M5vGXRmdH1vIvT88rrF3yE /home/home/.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 60
debug1: Server accepts key: pkalg rsa-sha2-512 blen 535
debug2: input_userauth_pk_ok: fp SHA256:2zjgjRVRDdbdfmjqip0o7M5vGXRmdH1vIvT88rrF3yE
debug3: sign_and_send_pubkey: RSA SHA256:2zjgjRVRDdbdfmjqip0o7M5vGXRmdH1vIvT88rrF3yE
sign_and_send_pubkey: signing failed: agent refused operation
Run Code Online (Sandbox Code Playgroud)
如果我尝试从服务器计算机登录到其自身,则不会发生这种情况。如果我使用其他机器,就会发生这种情况。我在服务器和客户端计算机上运行 Ubuntu Budgie。home和文件夹的权限.ssh设置为 ,700并且authorized_keys设置为600。
这是我的 ssh 服务器配置的副本 ( sshd_config): …