【问题标题】:SSH GIT Clone with Private and Public Keys带有私钥和公钥的 SSH GIT 克隆
【发布时间】:2015-07-11 18:13:33
【问题描述】:

我得到了以下从服务器克隆 git 存储库的详细信息。

  • 地址:xx.xxx.xxx.xxx
  • 端口:xx
  • 用户:用户

    -----开始 RSA 私钥--

Proc-Type:4,加密

得克信息:AES-128-CBC,F1447CCDBBC8B2BCF6D12D0AAE5B96D7

TVuVfjbsoO+eimi6TmFJqwyjIWzUapZH8R17ddXAdl9Gpflvwmfhd7l8v1NkOFu2

-----结束 RSA 私钥-----

ssh-rsa

AAAAB3NzgvhjkljhgvEq9nFJR+Dqs/Uq0F0qJQYpwEBTe7rkerGFS1hJalu6d

8KpklV9G4P GXNY2mBNWwwnWvtiHXw0VGfJO6x6LFhf0Ss7ZM5RDyH9CNR5vrxzM7LWjCAcHi6X5HhgEABpsi1SG

uubyZYIJYggEP84sqEtVzMTLWJkw==

cxxx@gvhhh.com

和密码。

我在 Mac Yosemite 上的操作如下; 将私钥添加到名为 file_rsa 的文件中 将公钥添加到文件名 file_rsa.pub。

我做了一个 ssh-add -K ~/.ssh/file_rsa

但它要求输入我添加的密码,但不断收到 “密码错误” 然后我做了一个 git clone user@xx.xxx.xxx.xxx/file.git

我不断收到权限错误。

可能出了什么问题?

【问题讨论】:

    标签: git ssh


    【解决方案1】:

    确保您的密码正确。 您可以关注this answer

    以下是检查密码是否正确的摘录:

    ssh-keygen -y 将向您询问密码(如果有的话)。

    If you input the correct passphrase, it will show you the associated public key.
    If you input the wrong passphrase, it will display load failed.
    

    【讨论】:

      猜你喜欢
      • 2023-03-24
      • 1970-01-01
      • 2017-02-10
      • 1970-01-01
      • 2013-03-24
      • 2016-03-08
      • 2016-10-09
      • 2016-09-15
      • 2011-05-18
      相关资源
      最近更新 更多