【以下的问题经过翻译处理】 无法连接除AWS AMI之外的任何实例,即使在端口22上打开默认安全组和完全相同的密钥对。所有实例都使用免费的套餐选项。如果需要,我可以提供实例ID以进一步研究这些问题。
我使用AWS AMI(amzn2-ami-hvm-2.0.20190823.1-x86_64-gp2(ami-0b69ea66ff7391e80))创建了一个实例,新创建的密钥对(testing;testing.pem),并且安全组显示在端口22上打开TCP连接。
然后,我还使用Ubuntu 18.04 AMI(ubuntu / images / hvm-ssd / ubuntu-bionic-18.04-amd64-server-20191002(ami-04b9e92b5572fa0d1))创建了一个实例,该实例使用上面使用的相同密钥对(testing;testing.pem),并且安全组在端口22上显示打开TCP连接。
->> ~/.ssh $ ssh -i testing.pem ec2-user @54.167.74.46 上次登录:周一10月21日02:26:43 2019年来自[已隐去的IP] __|__|_ 意 Amazon Linux 2 AMI (o) (o) 15个软件包需要安全性,总共31个软件包可用 `'\_)__ pls.类型 sudo yum update以应用所有更新。 [ec2-user@ip-172-31-88-246〜]$ exit 注销 连接到54.167.74.46的连接已关闭。 ->> ~ / .ssh $
->> ~/.ssh $ ssh -i testing.pem ec2-user@184.72.150.242 连接被184.72.150.242端口22关闭。 ->> ~/.ssh $
【以下的回答经过翻译处理】 除非使用 AWS Ami,否则无法 SSH 到新的实例。
You are not logged in. Log in to post an answer.
A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.