'getting Host key verification failed for git clone https://... url
I am running
git clone https://github.com/ucb-bar/chisel3.git
This gives and error message of
Cloning into 'chisel3'...
Warning: Permanently added the ECDSA host key for IP address '140.82.114.4' to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The command has worked in the past(It is a Part of Jenkins running in docker), and started failing a few min back.
why is my https url getting converted into a git@ url?
Solution 1:[1]
Run these commands on your terminal and then try to clone the repo
echo "Host *" > ~/.ssh/config
echo " StrictHostKeyChecking no" >> ~/.ssh/config
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
