我正在尝试使用Google Cloud Source资源库作为远程资源库。我遵循了所有过程,以使用Google Cloud SDK身份验证方法进行身份验证,该方法允许我不使用SSH密钥(如他们所说)。
问题是:Permission denied (publickey) fatal: Could not read from remote repository.尝试时总是收到消息git push --all google。
该gcloud命令位于Windows PATH(C:\Users\xxxxx\AppData\Local\Google\Cloud SDK\;)中,并且我是Google Cloud中项目的所有者,因此我的用户具有足够的权限。
我知道此消息通常是一个简单的SSH密钥问题,可以通过将我的公共密钥添加到项目中来解决,但是该方法应该在没有ssh密钥的情况下也可以工作,因此我想了解自己在做什么。
这是我按照Google Cloud Source Repository过程执行的前两个命令:
gcloud init && git config --global credential.https://source.developers.google.com.helper gcloud.cmd
git remote add google ssh://username@gmail.com@source.developers.google.com:2022/p/my-website-project/r/my_website
Run Code Online (Sandbox Code Playgroud)
这两个效果很好。
也许有人可以帮助我找到解决方法。
谢谢。
git google-cloud-platform windows-10 google-cloud-source-repos