ssh error when connecting ec2 instance using gitbash

0

ssh: connect to host ec2-xx-xxx-xx-xx.ap-southeast-1.compute.amazonaws.com port 22: Connection timed out

gefragt vor 2 Jahren583 Aufrufe
2 Antworten
0

Not a lot of info provided. Check your SG first to ensure you allow SSH (tcp/22) from the source and also check your NACL. Connection timed out suggests it is network connectivity related issue.

beantwortet vor 2 Jahren
0

this timeout problem comes for one of the reason might be ssh firewall blocked internally (ufw) : first makesure security group port 22 enabled or not , despite ssh port enables in the security group still this issue is presist . it is confirmed internal firewall issue .

APPROACH FOR SOLVING THIS ISSUE:

I detached the root volume from this web application instance and attached the volume into another running instance. Then, I navigated to the instance, mounted a volume to the mount point folder, and navigated into the ufw configuration folder for the volume device. I modified the rules and reloaded the firewall. Then, I unmounted the volume and detached the volume from this instance, reattached it to the web application instance. Finally, I tried to SSH. The issue got resolved. i have documented step-by-step solution for solving this issue .

I invite you to read the detailed documentation of this troubleshooting journey

Document link: [ https://docs.google.com/document/d/1saZM95s5ZF2GgdSPI3wV-cUZiB-3Aprc/edit ]

during this process any issue , feel free to reach out me in linkdin linkdin id : [ https://www.linkedin.com/in/elamparithi-m-72288625a/ ]

beantwortet vor 5 Tagen

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