繁体   English   中英

从终结者而不是konsole调用时,git push不会提示我输入密码

[英]git push doesn't prompt me for a password when invoked from terminator instead of konsole

我在gitlab服务器上有一个远程git存储库。
我正在通过ssh访问服务器。 当我从Konsole窗口键入git push ,它工作得很好,并且git要求我提供ssh-key对的密码。

我输入密码,然后执行推送。 当我尝试从“ Terminator窗口执行相同操作时,它不起作用。 相反,终结者输出

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM