我正在尝试通过公钥进行身份验证。我运行了:
ssh [email protected] -vv
返回结果:
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/justinobrien/.ssh/id_rsa RSA SHA256:.............
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /Users/justinobrien/.ssh/id_dsa
debug1: Trying private key: /Users/justinobrien/.ssh/id_ecdsa
debug1: Trying private key: /Users/justinobrien/.ssh/id_ed25519
debug1: Trying private key: /Users/justinobrien/.ssh/id_xmss
debug2: we did not send a packet, disable method
debug1: Next authentication method: password
.ssh/
我的目录中有以下内容:
id_rsa
id_rsa.pub
justin
justin.pub
known_hosts
root
root.pub
用户“justin”有一对公钥和私钥。还有一对“root”公钥和私钥。每个公钥都存储在 ubuntu 服务器上受尊敬用户的“authorized_keys”文件中。我不确定 / id_rsa
(id_rsa.pub
我认为是我生成的密钥,我从未更改过其名称)和文件在我的本地计算机上是什么。我也不确定 、 、、文件来自known_hosts
哪里,因为它们似乎不在这个目录中。有人知道发生了什么事,或者下一步该怎么做才能弄清楚为什么我只能通过密码进行身份验证?id_dsa
id_ecdsa
id_ed25519
id_xmss