![Ubuntu 15.10 上的 SSH 客户端无法使用公钥](https://linux22.com/image/1054557/Ubuntu%2015.10%20%E4%B8%8A%E7%9A%84%20SSH%20%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%E5%85%AC%E9%92%A5.png)
我试图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