首页 > 解决方案 > 当从终结器而不是 konsole 调用时,git push 不会提示我输入密码

问题描述

我在 gitlab 服务器上有一个远程 git 存储库。
我正在通过 ssh 访问服务器。当我git pushKonsole-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.  

从来没有要求我输入我的密码。我怎样才能改变这种行为?

标签: gitubuntusshgitlabterminator

解决方案


在这种情况下,当您提到它要求您提供 GitLab 帐户时,这意味着如果您的密码准确,那么您的 ssh 密钥设置不正确。

将您的密钥复制到您的 GitLab 帐户,然后重试。

# grab the key
cat ~/.ssh/id_rsa.pub

推荐阅读