我生成了ssh密钥,并按手册(https://cloud.google.com/cloud-build/docs/access-private-github-repos#create_or_update_known_hosts_file中的说明进行了添加,但是当构建器使用命令git submodule update --init --recursive
时,我得到了:
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
当我在本地使用相同的ssh密钥时,克隆存储库等没有任何问题。