ssh connection timeout

0

I am unable to connect to server to server using ssh. the error message is ubuntu@ip-60-0-0-48:$ ssh root@40.0.6.136 ssh: connect to host 40.0.6.136 port 22: Connection timed out ubuntu@ip-60-0-0-48:$

已提問 1 年前檢視次數 270 次
2 個答案
0

Hi rePost-User-9876809, Check if port 22 is allowed for the IP address of the connection source in the EC2 security group. If so, make sure that the Internet Gateway is pointing to the 0.0.0.0/0 target in the route table of the subnet to which the EC2 instance belongs.

profile picture
已回答 1 年前
0

Could you please help me how do you get the "ubuntu@ip-60-0-0-48" name. It appears to me it is a public IP, usually EC2 is named with private IP, if I am not wrong. How did you configure your public IP, static or automatic, if it is automatic and which may change, if there is any stop and restart occurs. Please also check your key pair and follow the link.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#TroubleshootingInstancesConnectionTimeout

Please advise accordingly. Thanks a lot.

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南