简体   繁体   English

sublime GIT 不能推也不能拉

[英]sublime GIT can't push or pull

I just switched to Sublime and I try to set up git but I can't push or pull to/from remote repository and seems to be related to the path of SSH key.我刚刚切换到 Sublime 并尝试设置 git,但我无法向/从远程存储库推送或拉取,并且似乎与 SSH 密钥的路径有关。 If I use command line everything works fine.如果我使用命令行一切正常。

If I use command-line the path to SSH looks如果我使用命令行,SSH 的路径看起来

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

How do I add to sublime GIT Package the correct SSH keys path如何将正确的 SSH 密钥路径添加到 sublime GIT Package

console log控制台日志

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.

When your ssh key has a passphrase and you try push/pull with this plugin, we don't have an interactive shell that can request the passphrase.当您的 ssh 密钥有密码并且您尝试使用此插件进行推/拉时,我们没有可以请求密码的交互式 shell。 A known workaround is to use a keychain to autofill the passphrase.一种已知的解决方法是使用钥匙串来自动填充密码。 Sublime-text-git/issues/178 Sublime-text-git/issues/178

Type the following command: ssh-add -K ~/.ssh/id_rsa to permanently add the id_rsa ssh private key to your local.键入以下命令: ssh-add -K ~/.ssh/id_rsa将 id_rsa ssh 私钥永久添加到您的本地。 Enter your passphrase once and won't be asked for the passphrase again.输入您的密码一次,不会再被要求输入密码。

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

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