【发布时间】:2021-02-05 11:06:24
【问题描述】:
我正在尝试在我的终端上使用以下命令行连接到 EC2 机器:
ssh -i id_rsa_aws <ec2_ip_address> -l ec2-user -vvv
结果如下:
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: resolve_canonicalize: hostname <ec2_ip_address> is address
debug2: ssh_connect_direct
debug1: Connecting to <ec2_ip_address> [<ec2_ip_address>] port 22.
debug1: Connection established.
debug1: identity file id_rsa_aws type 0
debug1: identity file id_rsa_aws-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.8
ssh_exchange_identification: read: Operation timed out
我的 ssh_config 文件:
Host *
SendEnv LANG LC_*
我知道问题一定来自我的电脑。我曾尝试使用 .pem 文件,但遇到了同样的错误。
任何帮助将不胜感激。
谢谢
【问题讨论】:
-
您能否通过 SSH 连接到同一子网中的任何其他 EC2 实例?
标签: amazon-web-services amazon-ec2 ssh