3
我试图将现有文件集推送到我创建的新私人回购中。我之前做过这件事,但今天我得到了比平时不同的输出。将新文件推送到新回购
在推,我得到了以下信息:
Warning: Permanently added the RSA host key for IP address '131.103.20.168' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
首先,我注意到,设立一个新的回购指示已更改为使用SSH
而不是HTTPS
推到回购:
cd /path/to/my/repo
git remote add origin [email protected]:renovationlabs/cloudcode.git
git push -u origin --all # pushes up the repo and its refs for the first time
git push -u origin --tags # pushes up any tags
现在我遇到了这些警告和错误。这是一个SSH
问题,我该如何解决这个问题?