已添加正确的ssh-key但是提示没有权限,代码拉取失败。
经查询是由于没有添加domain 导致。
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
参考链接: https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository
已添加正确的ssh-key但是提示没有权限,代码拉取失败。
经查询是由于没有添加domain 导致。
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
参考链接: https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository