Git设置SSH key第一次从远端克隆代码时报这个错:
Host key verification failed.
fatal: Could not read from remote repository.
这个原因是,远端服务器地址不在已知的host的中,询问是不是要把远端地址加入到konw_host中,如果直接回车,则默认没有权限写入,必须输入 yes才能正确写入 konw_host
$ git clone xxxxx.git
The authenticity of host 'xxxx.com (xx.100.250.60)' can't be established.
ECDSA key fingerprint is SHA256:s/fFxC0SM1mqgt25IH***************.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.