SSH 要求输入密钥密码,但没有任何密码

SSH 要求输入密钥密码,但没有任何密码

尝试使用连接到我的服务器

ssh -l root -i private.key server.com

密钥是openssh格式的Ed25519,没有设置密码。

当我输入上述命令时,OSX 钥匙串要求我​​输入密码。它不接受我通常的系统密码。

为什么我没有设置私钥密码,但它却要求我输入私钥密码?

使用时-vvv,我收到文件格式无效的消息,好了,结案了^^

debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey
debug1: Trying private key: key.priv
debug1: key_parse_private_pem: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Saving password to keychain failed
debug3: Incorrect RSA1 identifier
debug1: key_parse_private_pem: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug2: no passphrase given, try next key
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey).

相关内容