如何通过FileZilla / WinScp或SSH访问从GCP中的市场产品部署创建的VM实例?

问题描述 投票:-1回答:1

我正在GCP上进行wordpress安装,这是通过在市场中部署wordpress来完成的:

enter image description here

成功部署后,我还为实例设置了静态IP地址:

enter image description here

我需要使用FileZilla或WinSCP连接到该实例,或者至少要通过SSH进入该实例,才能进行一些自定义工作。

有人可以启发我完成这项工作吗?我在练习过程中看到为某些最有可能删除的资源创建了SSH密钥:

enter image description here

[UPDATE]

我仔细检查了防火墙规则,发现有一条规则允许SSH:

enter image description here

[更新]我从控制台(计算引擎-> VM实例)尝试了SSH,进入某个地方,这里是详细信息:

Connected, host fingerprint: ssh-rsa 0 AD:45:62:ED:E3:71:B1:3B:D4:9F:6D:9D:08:16
:0C:55:0F:C1:55:70:97:59:5E:C5:35:8E:D6:8E:E8:F9:C2:4A
Linux welynx-vm 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3 (2019-09-02) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
xenonxie@welynx-vm:~$ ls
xenonxie@welynx-vm:~$ pwd
/home/xenonxie
xenonxie@welynx-vm:~$ 

Wordpress的安装位置在哪里?这里显示的足迹是什么?实例的发布密钥?

ssh google-cloud-platform winscp filezilla
1个回答
0
投票

由于这是一个市场映像,请确保您具有允许端口22的防火墙规则,并将目标TAG附加到VM的网络标签。之后,单击控制台中VM名称附近的SSH按钮。这是登录GCP实例的最简单方法。

© www.soinside.com 2019 - 2024. All rights reserved.