无法通过 SSH 连接到 Google Cloud 虚拟机错误代码 4010

发布于 2025-01-16 02:53:24 字数 1142 浏览 1 评论 0原文

无法通过 SSH 连接到 Google Cloud 虚拟机。

我在尝试连接虚拟机时遇到了以下错误。 输入图片此处描述

到目前为止,我已经尝试过以下操作,

代码:4010 - 通过 Cloud Identity-Aware 代理连接失败

<一href="https://stackoverflow.com/questions/69770172/google-vm-instance-connection-via-cloud-identity-aware-proxy-failed-code-4010">通过 Cloud Identity-Aware 代理进行 Google VM 实例连接失败(代码 4010)

您能否告诉我此问题是否与任何 SSH 密钥有关。我以为 ssh 密钥已过期。所以,我生成了新的 SSH private &通过 PUTTY Gen 的公钥 然后我在 Google cloud->Metadata->SSH Keys -> 中更新了公钥编辑
遵循许多文档来生成 ssh key &添加 ssh 密钥

我无法在实例->; 中添加 ssh 密钥编辑-> SSH 密钥面临下面提到的错误。

输入图片此处描述

需要立即启动tomcat服务,最近12小时服务已因该问题而停止。您能否建议至少启动 apache tomcat 服务的任何方法?如果需要任何说明,请告诉我。 您能帮我解决这个问题吗?

不要标记为重复问题。这与其他问题有关。我已经检查过现有的论坛。不工作。

Unable to connect to Google Cloud VM via SSH.

I have faced the below-mentioned error while trying to connect VM.
enter image description here

So far I have tried following things,

Code: 4010 - Connection via Cloud Identity-Aware Proxy Failed

Google VM instance Connection via Cloud Identity-Aware Proxy Failed (code 4010)

Could you please tell me anyone is this issue is related to any SSH key. I thought ssh key has been expired. So, I have generate new SSH private & public key via PUTTY Gen
Then I have update public key in Google cloud->Metadata->SSH Keys -> Edit
Followed many documents to generate ssh key & add ssh key

I am unable to add ssh key in Instance-> Edit-> SSH key facing below mentioned error.

enter image description here

Need to start tomcat service imediately last 12 hours service has been stopped due to this issue. Could you please suggest any way to start atleast apache tomcat service?. Please let me know if need any clarification.
Could you please help me anyone to resolve this issue.

Don't mark as duplicate question. It's related to someother issue. I have already checked existing forums. Not working.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぶ宁プ宁ぶ 2025-01-23 02:53:24
  1. 我们如何知道 SSH 密钥已过期?
<protocol> <key-blob> google-ssh {"userName":"<[email protected]>","expireOn":"<date>"}

您可以查看expireOn

  1. 常见的解决方案是防火墙。请检查您的防火墙配置是否正确并在您要连接的端口上打开。您可以使用连接测试< /a> 识别任何连接问题。


  2. 此外,您应该能够看到实例的串行控制台输出使用 GCP 控制台 - 转到实例的详细信息并单击串行端口 1(控制台),您将看到输出。

  3. GCP 提供了问题排查的文档

第二个问题表明您遇到了一些 IP 问题,因此我仍然建议您检查您使用的任何网络服务。

  1. How should we know the SSH key is expired?
<protocol> <key-blob> google-ssh {"userName":"<[email protected]>","expireOn":"<date>"}

You can check out expireOn.

  1. The common solution is the firewall. Please check your firewall is configured correctly and open on the port you're connecting to. You can use Connectivity Tests to identify any connectivity issues.

  2. Also, you should be able to see the instance's serial console output using the GCP console - go to the instance's details and click on Serial port 1 (console) and you will see the output.

  3. GCP has provided the documentation of troubleshooting.

The second issue shows that you're facing some IP problems, so I still suggest that review any network service that you using.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文