Ubuntu 15.10 上的 SSH 客户端无法使用公钥

Ubuntu 15.10 上的 SSH 客户端无法使用公钥

我试图ssh从我的 Ubuntu 机器连接到其他 SSH 服务器,也连接到它自己,但它无法使用公钥——它总是提示输入密码。

ssh客户端的详细输出

debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/jruocco/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug2: input_userauth_pk_ok: fp SHA256:d4AIC3wwR5k2NubCySUxj8Hreru3QErMM9+8pdKcO4g
debug1: Trying private key: /home/jruocco/.ssh/id_dsa
debug1: Trying private key: /home/jruocco/.ssh/id_ecdsa
debug1: Trying private key: /home/jruocco/.ssh/id_ed25519
debug2: we did not send a packet, disable method
debug1: Next authentication method: password
[email protected]'s password: 

调试信息来自/usr/sbin/sshd -d

debug1: trying public key file /home/jruocco/.ssh/authorized_keys
debug1: fd 4 clearing O_NONBLOCK
debug1: matching key found: file /home/jruocco/.ssh/authorized_keys, line 1 RSA SHA256:d4AIC3wwR5k2NubCySUxj8Hreru3QErMM9+8pdKcO4g
debug1: restore_uid: 0/0
Postponed publickey for jruocco from 127.0.0.1 port 35666 ssh2 [preauth]

我应该提到,我可以使用另一台 Linux 机器(Kali)的公钥对这台计算机进行身份验证,没有任何问题。

[ubuntu] > [ubuntu] = failing
[kali]   > [ubuntu] = working

相关内容