【问题标题】:I get an error whenever I use this code: git clone git@github.iu.edu:manoo/csci36300-git-example17.git每当我使用此代码时都会出现错误: git clone git@github.iu.edu:manoo/csci36300-git-example17.git
【发布时间】:2018-02-05 04:44:27
【问题描述】:

git clone 上的错误信息是:

Permission denied (publickey).
fatal: Could not read from remote repository.

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

【问题讨论】:

标签: git command-line terminal


【解决方案1】:

由于它是一个私有 GitHub 实例,请转到您的 github.iu.edu 个人资料页面,并仔细检查您是否拥有registered your public key to your account

然后double-check ssh is working 与:

ssh -T git@github.iu.edu

【讨论】:

  • 使用git@ 命令将SSH 指定为连接协议。这需要存储库(主机)的密钥。
  • @ThomParkin 是的,这就是我所说的“仔细检查您是否已将您的公钥注册到您的帐户。”,因为它确实“需要存储库(主机)的密钥”
猜你喜欢
  • 2021-04-07
  • 2021-01-27
  • 2015-11-22
  • 1970-01-01
  • 2014-10-01
  • 1970-01-01
  • 2020-11-28
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多