Answers for "Host key verification failed. fatal: Could not read from remote repository."

4

git host key verification failed

#Windows:
ssh-keyscan -t rsa github.com >> %userprofile%/.ssh/known_hosts

#Mac:
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts

# (If it says 'Command not found', try to run the command in your Git Bash.)
Posted by: Guest on June-02-2020
0

Host key verification failed. fatal: Could not read from remote repository.

# in my case this was github.com
ssh-keygen -R domain.com
ssh-keyscan -t rsa domain.com >> ~/.ssh/known_hosts
Posted by: Guest on October-03-2021

Code answers related to "Host key verification failed. fatal: Could not read from remote repository."

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language