My last activity was I accidentically edited permission on my ec2 instace
I was trying to add permission 775 on my project's directory called storage
command like this
sudo chmod -R 775 storage
But instead doing this on /var/www/html/
I did this on directory like this ~
means the root directory.
and I exit the terminal and tried to access the server using ssh but it gaves me an error
Connection time out port 22
The following steps I tried to fix but didn't work on my end
- Adding Public IP to Security Group using SSH Port 22
- Adding rule to Network ACL ( for both inbound and outbound rules )
- Checking Route table
- Tried to Snapshot the Instance and launch new ec2 instance using same AMI
all the above steps are what I tried, but still I cannot connect. Is there missing step that I need to do?