【发布时间】:2015-04-22 15:20:36
【问题描述】:
我关注 Bitbucket 网站上的文档,并希望通过 ssh 将现有项目推送到远程存储库。我在 CMD 中执行了下一步:
- 我使用 puttygen 生成了公钥和私钥
- 使用 pageant 添加了私钥
- 在 ~/.ssh 中添加了 ssh 配置文件
- 为 bitbucket 添加了公钥
当我尝试执行时:
git push -u origin --all
我得到堆栈跟踪:
Enter passphrase for key 'k:\path\private_work_key.ppk':
Enter passphrase for key 'k:\path\private_work_key.ppk':
Enter passphrase for key 'k:\path\private_work_key.ppk':
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我什至将公钥添加到 ~/.ssh/authorized_keys ,但问题仍然存在。
拜托,谁能解释一下我做错了什么?
【问题讨论】:
标签: git ssh bitbucket ssh-keys