But I lost connection from ssh with commnd like(I copied this url in AWS console->instance->Connect button)
ssh -i /path/StreamgeeksRebrandedKeyPair.pem [email protected]
ssh: connect to host ec2-N1-N23-N45-N6.eu-central-1.compute.amazonaws.com port 22: Connection timed out
where -N1-N23-N45-N6 is IP of new Elastic IP address above.
Any ideas what is wrong? Any debugging/log errors ?
The issue is probably that you turned the UFW Firewall on in step 3, which now blocks your SSH port.
I found this answer on StackOverflow. Perhaps it helps.
If you are in the early stages op setting up your server and won't loose too much, you might consider just spinning up a new instance and skip step 3 in your next try.
I have no access to my instance console,
but In AWS console I can check Security groups and I see : https://imgur.com/a/sqe8c2Z
Reading provided branch I see Instance Settings -> Edit User Data decision.
But I got message : https://imgur.com/a/p1cim8B
I am just intsalling my app aand use only mysql db and not sure what
they call “ data on the ephemeral storage” ?
Does it mean that Ihave to recreate all ubuntu/lamp/my app again ?
I faced similar issue few months back. I followed the answer provided by Fabián Bertetto on this stack overflow thread Locked myself out of SSH with UFW in EC2 AWS (this is the same link provided by erikverbeek)
Sorry I didn't see that digital ocean article mentioned / had you setup UFW / firewall. You can skip that step if you use security groups already in AWS.
The link provided by @chaudigv should probably work, and it won't lose any configuration changes (other than what you did to setup UFW/firewall within the server).