我无法通过 SSH 或基于浏览器的 SSH 访问 Linux EC2 实例。
实例 ID:i-01a3cdf3b36ff6d4f
入站规则:HTTP TCP 80 0.0.0.0/0 SSH TCP 22 0.0.0.0/0
出站规则:所有流量 All All 0.0.0.0/0
从 windows 运行命令后,请检查以下日志:
ssh -vvv -i "keypair.ppk" ec2-user@ec2-<IP>.ap-south-1.compute.amazonaws.com
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PuTTY (64-bit)>ssh -vvv -i "aws-lfd.pem" ec2-user@ec2-13-234-238-12.ap-south-1.compute.amazonaws.com
OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4
debug3: Failed to open file:C:\\Users\\b.tembhurne/.ssh/config error:2
debug3: Failed to open file:C:\\ProgramData\\ssh/ssh_config error:2
debug2: resolving "ec2-13-234-238-12.ap-south-1.compute.amazonaws.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to ec2-13-234-238-12.ap-south-1.compute.amazonaws.com [13.234.238.12] port 22.
我检查了上面位置不存在的配置文件。我需要手动创建一个吗?如果是这样,它应该是什么样子?请帮助解决此问题。