Cannot access EC2 Instance by ssh

0

Hi all,

I have an question after i change my sshd_config on my ec2 instance and reboot machine after that i cannot access again i tried with port 22 and 1982 also but still appear issue connection refuse please let me know how could i access to my instance

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

Maybe for some of the reason of these changes sshd failed to start.

Did you considered use system manager for access?

profile picture
已回答 1 年前
0

Hi aelexanh. Do you mean you changed the SSH port from the default port (22) to 1982? If so, did you also update the inbound rules of the security group for your EC2 instance? Remove the "SSH" type rule (with TCP port range 22), and add a new "Custom TCP" type rule with port range 1982 and the appropriate source.

profile pictureAWS
jbt
已回答 1 年前

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

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

回答問題指南