我在 github 和 bitbucket 中有 repos。
首先,我想在 bb 和 gh 中使用相同的公钥而没有运气。
所以我创建了另一个公钥,我的 .ssh/config 文件如下所示:
Host bb
HostName bitbucket.org
User hg
PreferredAuthentications publickey
IdentityFile C:/Documents and Settings/Marek/.ssh/bb
Host github
HostName github.com
User git
PreferredAuthentications publickey
IdentityFile C:/Documents and Settings/Marek/.ssh/id_rsa
Run Code Online (Sandbox Code Playgroud)
bb.pub 用于 bitbucket。我将此文件中的密钥粘贴到 bitbucket。
我还有
权限被拒绝(公钥)
当我尝试推送我的初始提交时。有人可以帮忙吗?
帮助