树莓派安装ubuntu core时登录账户。ssh验证后依然需要密码登录是为什么,求大神解答下

feveryone 2017-08-18 10:49:52
wang@wang:~$ ssh -v wangkunming@192.168.0.10
OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.0.10 [192.168.0.10] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/wang/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wang/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wang/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wang/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wang/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wang/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wang/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wang/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.2
debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.0.10:22 as 'wangkunming'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:Uay3ACHJTF1ZhRP1ssYHPZnPiN7bd2sV0rNqOyXX12o
debug1: Host '192.168.0.10' is known and matches the ECDSA host key.
debug1: Found key in /home/wang/.ssh/known_hosts:3
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/wang/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/wang/.ssh/id_dsa
debug1: Trying private key: /home/wang/.ssh/id_ecdsa
debug1: Trying private key: /home/wang/.ssh/id_ed25519
debug1: Next authentication method: password
wangkunming@192.168.0.10's password:
这个是调试的详细信息,求大神解答,谢谢
...全文
696 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
feveryone 2017-08-18
  • 打赏
  • 举报
回复
这些都已经设置过了,公钥和私钥是一对,但是已经把文档看烂了还是找不出问题出在哪。从调试信息看,感觉感觉应该是匹配了,但是无法免密登录,ubuntu core系统进不去,也无法对里面进行设置。
幽饮烛 2017-08-18
  • 打赏
  • 举报
回复
ssh 没配置免密登陆吧。或者配置的公钥和客户端的私钥不匹配。
feveryone 2017-08-18
  • 打赏
  • 举报
回复
服务端应该没问题,因为服务端是ubuntu core,他通过ubuntu one下载我提供的公钥到自己系统内,然后与我自己的私钥配对,现在我还没有登进ubuntu core系统,无法查看他的authorized_keys是不是权限644。
幽饮烛 2017-08-18
  • 打赏
  • 举报
回复
看看服务器的 authorized_keys 文件的权限是不是 644。

18,773

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧