【发布时间】:2017-10-30 09:34:45
【问题描述】:
我刚刚在 bitbucket 上创建了 git repo。然后我按照以下方式创建 ssh 密钥:
1. ssh-keygen -t rsa -C 'dien.vo@asnet.com.vn'
2. ssh-keygen (press enter more)
3. cat ~/.ssh/id_rsa.pub --> it return for me a SSH key
4. Coppy that and added on bitbucket, then I save the new SSH key
之后我选择了 SSH 链接 git,如 git@bitbucket.org:DienVo/abc.git,但在终端中显示
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我不知道我这里出了什么问题,请帮我解决它。
【问题讨论】:
-
另一种方法是克隆 repo HTTPS 方式