简体   繁体   English

Git 客户端在我第一次尝试使用 SSH 密钥访问时询问密码

[英]Git client asking password when I try to access first time using SSH Key

I am using Git to access remote repository and when ever I try to access git using my ssh key, it's asking password.我正在使用 Git 访问远程存储库,当我尝试使用我的 ssh 密钥访问 git 时,它正在询问密码。 I never added password in any stage.我从未在任何阶段添加密码。 My Git Admin imported my id_rsa.pub file into GIT server and configured.我的 Git 管理员将我的 id_rsa.pub 文件导入 GIT 服务器并进行配置。 But, with out password it's not proceeding further, also I never succeeded to access git from git client.但是,没有密码它不会继续进行,我也从未成功从 git 客户端访问 git。

Can anyone suggest what could be the issue?谁能建议可能是什么问题?

Thank you谢谢

I never added password in any stage我从未在任何阶段添加密码

The only stage where a "password" (passphrase actually) could have been set is when creating your id_rsa private key.可以设置“密码”(实际上是密码)的唯一阶段是创建id_rsa私钥时。

Check if that file begins with:检查该文件是否以:

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,556C1115CDA822F5

If so, you would need to add that key to the ssh-agent in order to cache said passphrase.如果是这样,您需要将该密钥添加到 ssh-agent以缓存所述密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM