如何解决Gcloud 无法检测到网络连接
我在 ESXi 服务器上有互联网连接,我想将所有内容复制到 GCP 存储。但是 Gcloud 无法进行身份验证。好像无法访问gloud登录服务器。
我不知道 esxi 提供商是否阻止了 GCP IP,但有什么方法可以验证吗?我们知道它尝试连接哪个 IP 或 DNS 地址吗?
这可能是一个不同的问题吗?我尝试禁用 ipv6 并希望它会起作用。
./gcloud init --skip-diagnostics
ERROR: There was a problem with web authentication.
ERROR: (gcloud.auth.login) Could not reach the login server. A potential cause of this could be because you are behind a proxy. Please set the environment variables HTTPS_PROXY and HTTP_PROXY to the address of the proxy in the format "protocol://address:port" (without quotes) and try again.
Example: HTTPS_PROXY=https://192.168.0.1:8080
解决方法
您可能会从以下位置获得更多信息:
gcloud info --run-diagnostics
您是否在代理后面运行?如果是这样,您需要为 gcloud 设置代理设置:https://cloud.google.com/sdk/docs/proxy-settings
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。