【问题标题】:sublime GIT can't push or pull崇高的 GIT 无法推动或拉动
【发布时间】:2014-12-11 01:46:34
【问题描述】:

我刚切换到 Sublime,我尝试设置 git,但我无法向远程存储库推送或拉取/从远程存储库中拉取,并且似乎与 SSH 密钥的路径有关。如果我使用命令行一切正常。

如果我使用命令行,SSH 的路径看起来

Enter passphrase for key '/root/.ssh/id_rsa':

如何在 sublime GIT Package 中添加正确的 SSH 密钥路径

控制台日志

Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

【问题讨论】:

  • Sublime 中的错误究竟是什么?您可以通过 View > Show Console 或使用快捷方式 CTRL+` 来查看 sublime 中的 python 控制台。
  • 感谢我更新帖子的提示
  • 你在 sublime for git 中使用哪个插件?

标签: git push sublimetext3 pull


【解决方案1】:

键入以下命令:ssh-add -K ~/.ssh/id_rsa 将 id_rsa ssh 私钥永久添加到您的本地。输入您的密码一次,系统不会再次要求您输入密码。

【讨论】:

    【解决方案2】:

    当您的 ssh 密钥有密码并且您尝试使用此插件进行推/拉时,我们没有可以请求密码的交互式外壳。一种已知的解决方法是使用钥匙串自动填充密码。 Sublime-text-git/issues/178

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-01
      • 2013-12-12
      • 1970-01-01
      • 1970-01-01
      • 2016-04-03
      • 2013-08-18
      相关资源
      最近更新 更多