如果我的密钥名为 id_rsa.pub 并且我将它放入 bitbucket ssh 设置中。它是开箱即用的。当我 ssk-keygen 名称像 id_rsa_else.pub,然后插入到 ssh 密钥设置。它在说
repository access denied.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
更新 1
以下给了我上面的错误:
Host andatech_bitbucket_my_username
HostName bitbucket.org
User andatech_my_username
IdentityFile ~/.ssh/andatech_my_username_bitbucket
Host bitbucket.org
HostName bitbucket.org
PreferredAuthentications publickey
IdentityFile ~/.ssh/andatech_xxx_bitbucket
基于此:https : //confluence.atlassian.com/bitbucket/configure-multiple-ssh-identities-for-gitbash-mac-osx-linux-271943168.html
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句