0

我正在尝试在 Fedora 24 上使用lastpass-cli来记录 git,而无需在每次推/拉时输入密码。但我在下面收到此错误:

错误:找不到指定的帐户。

错误:找不到指定的帐户。

在 lastpass 数据库中找不到主机。错误:无法从“/usr/libexec/openssh/gnome-ssh-askpass”读取 askpass 响应

进入 lastpass 保险库,我尝试了两种配置:

1)code.xyz.com/project/example.git(更具体)

2) 只需 code.xyz.com

我正在使用这个脚本:https ://raw.githubusercontent.com/lastpass/lastpass-cli/master/contrib/examples/git-credential-lastpass

然后是配置:

git config --global credential.helper './git-credential-lastpass'

请问有什么线索吗?

谢谢你。

4

1 回答 1

1

在修改脚本后,我找到了一个解决方案:使用 repo 的主机名(如果未设置为默认默认值,则没有协议和端口)作为 LastPass 凭据的 Name 属性。

例如,如果您的远程来源 url 是:

url = https://username@repo.example.com:12345/reponame

然后将 LastPass 凭证的名称设置为:

repo.example.com:12345
于 2017-07-05T13:02:29.553 回答