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
asked a year ago255 views
2 Answers
0

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

Did you considered use system manager for access?

profile picture
answered a year ago
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
answered a year ago

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.

Guidelines for Answering Questions