【发布时间】:2022-01-25 02:02:52
【问题描述】:
我不知道该怎么问。当我尝试使用 SSH 访问远程仓库(在 bitbucket 中)时,我无法运行某些命令,例如git push 或 git pull。
当我这样做时,我提示输入密码以访问私有锁定密钥(我不知道这意味着什么)。我不知道我应该输入哪个密码,我已经尝试输入我的帐户密码,以及我为ssh-keygen 命令输入的密码,但这些都不正确。
谁知道是什么问题,请帮忙。
当我取消并退出提示时这些输出:
$ git push -u origin main
sign_and_send_pubkey: signing failed for RSA "/home/user/.ssh/id_rsa" from agent: agent refused operation
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
【问题讨论】: