【发布时间】:2019-04-13 02:18:27
【问题描述】:
所有与我相似的主题都试图解释如何配置 git 以便能够使用 bitbucket/github。 我的主题是关于不同的故事。 我可以推送/克隆/提交 - 在 bitbucket 上对我的存储库做任何我想做的事情,但是:
1) 我的存储库在设置中没有任何“访问密钥”
2) 我的 git 配置:
user.name=No Matter
user.email=anybody@fromanywhere.com
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=ssh://git@bitbucket.XXXX:7999/~someuser/test.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
branch.preprod.remote=origin
branch.preprod.merge=refs/heads/preprod
当我试图找出使用了哪个 SSH 密钥时,我在 stackoverflow 上阅读了很多我应该使用“ssh -vT git@bitbucket.XXX”的主题,但最后它要求我输入密码。
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /someuser/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /someuser/.ssh/id_dsa
debug1: Trying private key: /someuser/.ssh/id_ecdsa
debug1: Trying private key: /someuser/.ssh/id_ed25519
debug1: Next authentication method: password
git@bitbucket.XXXX's password:
当我使用 git pull;git push 等命令时,如何找出 git 使用的是哪个方法/ssh 密钥?
【问题讨论】: