【发布时间】:2021-05-26 14:05:58
【问题描述】:
我在 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
【问题讨论】:
-
这是网络问题。一切都取决于您的网络配置/架构。尝试 ping 一个 Google api(例如
ping storage.googleapis.com) -
我可以 ping storage.googleapis.com。但是有些东西阻止 gcloud 进行身份验证
-
你能执行
nslookup www.google.com吗?curl https://www.google.com? -
是的 nslookup 工作正常。没有 curl 但我使用 wget 拉 google.com 索引页。
-
嗯,DNS、ICMP 和 HTTPS 都可以访问。奇怪的是您的 gcloud init 不起作用。也许是因为您有代理,但我无法帮助您!
标签: google-cloud-platform gcloud gsutil esxi