【问题标题】:Enter passphrase for key 'c/users/dodie/.ssh/id_rsa':输入密钥“c/users/dodie/.ssh/id_rsa”的密码:
【发布时间】:2014-10-31 05:06:56
【问题描述】:

我对 openshift 和 python 比较陌生,当我对我的应用程序使用数据库进行一些更改时,我在使用 git push 命令后开始收到此消息:

git push
enter passphrase for key 'c/users/dodie/.ssh/id_rsa':

我做了一些研究,据我所知,您无法检索密码,我说得对吗?

我很确定我将密码留空,所以当我输入空白密码时,我会收到以下消息:

please make sure you have the correct access rights and the repository exists 

谁能告诉我克服这个问题的最佳选择是什么?

【问题讨论】:

  • 你要推到哪里?存储库是否存在?您是否拥有正确的访问权限?
  • 听起来您成功解锁了密码短语,但您没有对该身份的 git 存储库的写入权限。将该身份对应的公钥上传到 github 并授予其对存储库的访问权限。

标签: python git github ssh openshift


【解决方案1】:

尝试make a new Ssh key and add it in your service。每次创建 ssh 密钥时,您都会创建一个密码(如果您愿意,也可以是密码)。

通常,当你得到:

please make sure you have the correct access rights and the repository exists 

这意味着该服务不认识您,因此您需要向该服务提供您的 ssh 密钥,这样您就有足够的权限访问git push。希望对您有所帮助!

【讨论】:

  • 是的,不要忘记将您的 ssh 密钥添加到您的网络服务中。
  • 知道最好的方法是什么吗??
  • 您需要查看您的服务的文档以实现 ssh 密钥,顺便问一下您的 Web 服务是什么?
【解决方案2】:

你应该使用这个命令: ssh-add ~/.ssh/id_rsa

【讨论】:

    最近更新 更多