git - 当从终结器而不是 konsole 调用时,git push 不会提示我输入密码
问题描述
我在 gitlab 服务器上有一个远程 git 存储库。
我正在通过 ssh 访问服务器。当我git push
从Konsole
-window 输入时,它工作得非常好,并且 git 要求我输入我的 ssh 密钥对的密码。
我输入我的密码并执行推送。当我尝试从Terminator
-window 做同样的事情时,它不起作用。而是终结者输出
Enter passphrase for key '/example/directory/user/.ssh/id_rsa':
git@example-git.examplecompany.de's password:
Permission denied, please try again.
git@example-git.examplecompany.de's password:
Permission denied, please try again.
git@example-git.examplecompany.de's password:
Permission denied (publickey,password).
fatal: Could not read from remote repository.
从来没有要求我输入我的密码。我怎样才能改变这种行为?
解决方案
在这种情况下,当您提到它要求您提供 GitLab 帐户时,这意味着如果您的密码准确,那么您的 ssh 密钥设置不正确。
将您的密钥复制到您的 GitLab 帐户,然后重试。
# grab the key
cat ~/.ssh/id_rsa.pub
推荐阅读
- mongodb - 什么时候需要运行 mongod?
- autodesk - Revit API 2021:ImageType API
- javascript - 在 PayPal 中使用单次结帐支付多个接收方
- user-input - 添加 dateOfBirth 用户属性无法验证提供的信息
- google-bigquery - 查询两个不同行的日期的最佳方法(BigQuery)
- oracle - 在 oracle 中在哪里使用并行提示
- python - 如何循环多个数据以创建多个csv文件
- python - validate_pin 在预期为 True 时返回 False
- vba - 几次迭代后访问 VBA 宏卡住
- python - 仅沿 y 轴移动绘图虚线的矩形形状