gpt4 book ai didi

wordpress - 为什么我无法连接到我的 linux 实例?

转载 作者:行者123 更新时间:2023-12-03 23:10:55 27 4
gpt4 key购买 nike

我刚刚在 AWS EC2 上启动了一个实例(免费层 - t2.micro) - 所以我可以开始一个 Wordpress 博客。我尝试连接到这个实例(使用基本的 3 种方法),以便我可以下载 wordpress 并开始使用。问题是我无法使用给定的 3 种方法连接到此实例。

我在我的笔记本电脑上运行 linux 18.04,所以即使在我的 AWS 实例设置上 - 我选择了 Linux。尝试连接独立 SSH 客户端时:我收到此响应 ssh: connect to host ec2-198-51-100-1.compute-1.amazonaws.com port 22: Connection refused .
使用 EC2 Instance Connect 时:There was a problem setting up the instance connection
An error occurred and we were unable to connect or stay connected to your instance. If this instance has just started up, try again in a minute or two.
我得到了那个回应。最后一个选项是直接从我的浏览器使用 Java SSH 客户端(需要 Java) - 当我点击启动 ssh 客户端蓝色按钮时没有任何 react (就好像它卡住了一样)。有没有其他人经历过这种情况?他们是怎么熬过来的?

最佳答案

回答我自己 - 这是有效的解决方案:

由于我在启动 ec2 linux 实例时没有指定 key 对。我终止了实例并启动了一个新实例(确保这次指定了 key 对)。我用一个新的替换了我的 key 对的 .pem 文件。

关于wordpress - 为什么我无法连接到我的 linux 实例?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57646205/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com