通过ssh对raspberry pi的无密码访问

通过ssh对raspberry pi的无密码访问,ssh,raspberry-pi,Ssh,Raspberry Pi,我无法设置对Raspberry Pi的无密码访问。我正在使用类似的说明。但当我输入密码时,它仍然要求输入密码 嘘我的覆盆子。我用其他服务器做了这个,一切正常,但我的raspberry(两个)都不行 多亏了Jakuje,我变得更清楚了: 成功调试日志: debug1: Offering RSA public key: /home/tmp/.ssh/id_rsa debug3: send_pubkey_test debug3: send packet: type 50 debug2: we sent

我无法设置对Raspberry Pi的无密码访问。我正在使用类似的说明。但当我输入密码时,它仍然要求输入密码 嘘我的覆盆子。我用其他服务器做了这个,一切正常,但我的raspberry(两个)都不行

多亏了Jakuje,我变得更清楚了:

成功调试日志:

debug1: Offering RSA public key: /home/tmp/.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 ssh-rsa blen 535
debug2: input_userauth_pk_ok: fp SHA256:XPQA6tgcRCam/L18YP4ccPwsOsGtO65ippi7kua4mTM
debug3: sign_and_send_pubkey: RSA SHA256:XPQA6tgcRCam/L18YP4ccPwsOsGtO65ippi7kua4mTM
debug3: send packet: type 50
debug3: receive packet: type 52
debug1: Authentication succeeded (publickey).
故障日志:

debug1: Offering RSA public key: /home/tmp/.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,password
debug1: Trying private key: /home/tmp/.ssh/id_dsa
debug3: no such identity: /home/tmp/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /home/tmp/.ssh/id_ecdsa
debug3: no such identity: /home/tmp/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/tmp/.ssh/id_ed25519
debug3: no such identity: /home/tmp/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
为什么它忽略
id\u rsa
密钥并请求
id\u dsa

debug1: Offering RSA public key: /home/tmp/.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,password
表示该密钥已尝试,但服务器未接受。服务器配置/权限将出现问题。在调试模式下运行服务器可以确定问题所在。主目录
.ssh
目录的所有者和权限应如下所示:

chmod g-w /home/your_user
chmod 700 /home/your_user/.ssh
chmod 600 /home/your_user/.ssh/authorized_keys
表示该密钥已尝试,但服务器未接受。服务器配置/权限将出现问题。在调试模式下运行服务器可以确定问题所在。主目录
.ssh
目录的所有者和权限应如下所示:

chmod g-w /home/your_user
chmod 700 /home/your_user/.ssh
chmod 600 /home/your_user/.ssh/authorized_keys

你采取了哪些措施使它起作用?调试日志是什么样子的?如果没有这两个,这是不可能回答的。说明的链接在帖子中。我执行这些操作,PI仍然要求输入密码。您需要什么日志-我应该执行哪些命令或它位于何处?我会给你-没有问题
ssh-vvv-raspberry-ip
请参阅更新的帖子,因为
id\u rsa
密钥由于某种原因被服务器拒绝。您也可以在服务器中打开调试信息,以获取更多信息。为什么它拒绝密钥。您采取了哪些步骤使其工作?调试日志是什么样子的?如果没有这两个,这是不可能回答的。说明的链接在帖子中。我执行这些操作,PI仍然要求输入密码。您需要什么日志-我应该执行哪些命令或它位于何处?我会给你-没有问题
ssh-vvv-raspberry-ip
请参阅更新的帖子,因为
id\u rsa
密钥由于某种原因被服务器拒绝。您也可以打开服务器中的调试信息,以获取更多信息。是的,这是我的情况是的,这是我的情况