I am using mobaxterm local terminal. I want to use git commands. It's working except for credentials:
➤ 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.
I have try settings credential, but nothing works:
[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'
✔
A git credential helper would help for https credential caching, not ssh.
Check first if your remote URL is an SSH one:
git remote -v
If it is ( ssh://
or git@xxx:user/repo
) then:
~/.ssh
or switch to https if possible:
git remote set-url origin https://url/remote/repo
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.