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
gefragt vor einem Jahr274 Aufrufe
2 Antworten
0

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

Did you considered use system manager for access?

profile picture
beantwortet vor einem Jahr
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen