“Connecting to SSH server”消息在连接到GCP虚拟机时卡住了。

huangapple go评论71阅读模式
英文:

Stuck with "Connecting to SSH server" message on SSH connecting to GCP VM

问题

我想要启动一个与我在Google云平台(GCP)上拥有的虚拟机连接的WordPress网站,使用我从Google Domains购买的域名。然而,当我尝试从VM实例页面连接到我的WordPress网站的管理页面时。

“Connecting to SSH server”消息在连接到GCP虚拟机时卡住了。

使用<kbd>LOG INTO THE ADMIN PANEL</kbd> ,我得到:

 访问被拒绝
 您未被授权访问 https://XX.XXX.XXX.XXX/

访问被拒绝,您未被授权访问

当我尝试从以下URL进行时:

 访问被拒绝
 您未被授权访问 https://XX.XXX.XXX.XXX/?redirect_to=https://thedataclan.com/wp-admin/&amp;reauth=1

我认为这是因为SSL不再设置,但是当我尝试使用<kbd>SSH</kbd>连接到虚拟机时,我无法跳过这个消息:

 连接到SSH服务器...

那么,我该如何连接到GCP上虚拟机的SSH服务器,以便添加SSL证书?

更新 2023年9月6日

我尝试在VM Web GUI上自己连接,使用<kbd>SSH</kbd> 按钮,但现在我遇到了以下问题:

“Connecting to SSH server”消息在连接到GCP虚拟机时卡住了。

英文:

I wanted to start a wordpress site linked to a GCP machine I have with a domain I bought from Google Domains. However, when I try to connect to my wordpress site's admin page from the VM Instances page.

“Connecting to SSH server”消息在连接到GCP虚拟机时卡住了。

with <kbd>LOG INTO THE ADMIN PANEL</kbd> , I get:

 Access Interdit
 You are not authorized to access https://XX.XXX.XXX.XXX/

Access prohibited, You are not authorized to access

And when I try to do it from the url :

 Access Interdit
 You are not authorized to access https://XX.XXX.XXX.XXX/?redirect_to=https://thedataclan.com/wp-admin/&amp;reauth=1

I think it's because SSL is no longer set, but when I try to connect to the virtual machine with <kbd>SSH</kbd> I can't get past this message:

 Connection to SSH server...

So how do I connect to a virtual machine's SSH server on GCP so I can add the SSL certificate?

Update 9/06/2023

I tried to connect myself con the VM Web GUI, with the <kbd>SSH</kbd> button but, now, I have:

“Connecting to SSH server”消息在连接到GCP虚拟机时卡住了。

答案1

得分: 2

请在以下位置检查并确认VM实例所属的VPC网络:

导航面板 > 计算引擎 > VM实例

点击VM实例的名称,然后滚动到“网络接口”部分。

从那里,点击“网络”名称,将带您进入VPC网络详细信息。转到“防火墙”选项卡,并确保您有一个用于“端口80”的“Ingress”防火墙规则。

此外,正如@JohnHanley建议的那样,请尝试遵循此文档,因为它描述了连接到虚拟机(VM)实例使用SSH时可能遇到的常见错误,解决错误的方法以及诊断失败的SSH连接的方法。

英文:

Please check and confirm the VPC network where the VM instance is part of by going into

Navigation Panel > Compute Engine > VM instances

Click the name of the VM instance then scroll down to Network interfaces.

From there, click the Network name and it will take you to VPC network detals. Go to the Firewalls tab and make sure that you have an Ingress firewall rule for Port 80.

Additionally, as @JohnHanley suggested, please try to follow this document as it describes common errors that you may run into when connecting to virtual machine (VM) instances using SSH, ways to resolve errors, and methods for diagnosing failed SSH connections.

huangapple
  • 本文由 发表于 2023年6月9日 02:37:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/76434806.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定