[英]Git credential in Mobaxterm terminal
我正在使用mobaxterm本地终端。 我想使用git命令。 除凭据外,它正在工作:
➤ git pull
ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我有尝试设置凭据,但没有任何效果:
[05/03/2018 08:03.49] ~/dsf
[sylvain.auger-leger.vbw-sau-13] ➤ git git config --global credential.helper cache
✔
[05/03/2018 08:04.29] ~/dsf
[sylvain.auger-leger.vbw-sau-13] ➤ git config --global credential.helper cache
✔
[05/03/2018 08:04.30] ~/dsf
[sylvain.auger-leger.vbw-sau-13] ➤ git config --global credential.helper 'store --file ~/.my-credentials'
✔
git凭证帮助程序将帮助https凭证缓存,而不是ssh。
首先检查您的远程URL是否为SSH:
git remote -v
如果是( ssh://
或git@xxx:user/repo
),则:
~/.ssh
是否有公共/私有ssh密钥 或尽可能切换到https:
git remote set-url origin https://url/remote/repo
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.