简体   繁体   English

如何仅使用公共 ip 地址、用户名和密码登录 AWS EC2?

[英]How do I login to AWS EC2 with only a public ip address, username, and password?

I have received a Public IP, Username, and Password for an EC2 instance I need to deploy a Node API backend to, but I'm not able to ssh into it.我收到了一个 EC2 实例的公共 IP、用户名和密码,我需要将节点 API 后端部署到其中,但我无法将 ssh 部署到其中。 When I try to SSH into it, I get the following message:当我尝试将 SSH 输入其中时,我收到以下消息:

ssh: connect to host xx.xxx.xxx.xx port 22: Connection timed out

And if I try to ping the IP address, I receive a timeout as well:如果我尝试 ping IP 地址,我也会收到超时消息:

Pinging xx.xxx.xxx.xx with 32 bytes of data:
Request timed out.

Usually I get a pem file, but I wasn't provided with one on this project.通常我会得到一个 pem 文件,但在这个项目中没有提供给我。 Are those always required for AWS EC2 connections and maybe they just forgot to provide me with it? AWS EC2 连接是否总是需要这些,也许他们只是忘了提供给我?

Thanks in advance!提前致谢!

It turned out to be an issue on the AWS configuration side.结果证明是 AWS 配置方面的问题。 The route table did not have the inte.net gateway set.路由表没有设置 inte.net 网关。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 AWS EC2 实例中的公共而非私有 IP 地址的端口 3000 上运行应用程序(以便可以在 inte.net 上访问) - How to run application on port 3000 on Public and Not Private IP Address in AWS EC2 Instance (so it can be accessed on the internet) 使用 CDK 创建 AWS EC2 实例后如何获取公共 DNS? - How do I get public DNS after creating AWS EC2 instance with CDK? terraform aws ec2实例 ip地址分配 - terraform aws ec2 instance ip address assignment 如何在 EC2 Connect AWS 中复制/粘贴 - How do I copy/paste in EC2 Connect AWS 检查停止的 AWS EC2 实例是否将获得带有 boto3 的 Public IP - Check if stopped AWS EC2 instance will get a Public IP with boto3 如何在 AWS EC2 实例上将 IP 地址的大列表列入白名单? - How to whitelist a large list of IP addresses on AWS EC2 instances? 限制所有用户在 GCP/AWS/Azure 中将公共 IP 附加到 EC2/VM 的权限 - Restricting the permissions for all users of attaching a public IP to EC2/VM in GCP/AWS/Azure 是否有必要在 AWS 中面向 ELB 的互联网后面的 ec2 实例上设置公共 ip? - Is it necessary to set public ip on ec2 instance behind internet facing ELB in AWS? AWS EC2 - 开发者动态 ip 权限 - AWS EC2 - Developer dynamic ip permission 如何在 AWS 中编写一个 Lamdda function 以允许我连接到运行 MySQL 的 EC2 实例 - How do I write a Lamdda function in AWS that allows me to connect to an EC2 instance that is running MySQL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM