Failed to authenticate SSH session: Unable to open public key file

Posted _从未止步

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failed to authenticate SSH session: Unable to open public key file相关的知识,希望对你有一定的参考价值。

Git : Failed to authenticate SSH session: Unable to open public key file

使用cppbuild构建项目,需要使用git克隆项目下来,运行cppbuild dep的时候一直提示上述错误。 但是git的使用是正常的,分别 ssh -T git@github.com 和 ssh -T git@gitlab.com 都是OK的, 检查~/.ssh目录下的文件发现gitlab的公钥文件是id_rsa_gitlab(配置了github和gitlab),将这个文件id_rsa_gitlab改为id_rsa后,再次cppbuild dep,结果OK。

以上是关于Failed to authenticate SSH session: Unable to open public key file的主要内容,如果未能解决你的问题,请参考以下文章

pg_dump: [archiver (db)] connection to database “dbase” failed: FATAL: Peer authentication failed fo

关于spring-data-mongodb用户名密码登录报错问题:Failed to authenticate to database

jenkins 配置ssh remotes 报Failed to authenticate with public key

Could not transfer artifact from/to Authentication failed for 401 Unauthorized

Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private

ss下,解决ncurl: Failed to connect to android.googlesource.com port 443: Connection refused