【发布时间】:2020-07-16 23:05:51
【问题描述】:
我在 Windows 10 上生成 ssh 密钥对,将私钥添加到 ssh-add 客户端将公钥添加到 Bitbucket。
我运行ssh -T git@bitbucket.org 来检查一切是否正常并有下一个输出
logged in as myusername
You can use git or hg to connect to Bitbucket. Shell access is disabled
我尝试使用 ssh git clone git@bitbucket.org:myusername/test.git 克隆存储库并遇到身份验证问题
Cloning into 'test'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
任何想法可能是什么问题?只有一个想法,在生成 ssh 密钥对时,我将其保存到 .ssh 文件夹,但写入了不同的文件名。 ssh-add -l 表示密钥已加载
2048 SHA256:xxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxx C:\......\.ssh\id_bitbucket_rsa (RSA)
【问题讨论】: