I was showing my kids some basic things about directory permissions on an EC2 ubuntu instance, and did this
$ sudo chmod 700 /home
Then demonstrated that I could no longer cd
to my home directory because permission was denied.
Then I inadvertantly disconnected from the EC2 instance. Now I cannot log back in because the sshd on the ubuntu side cannot access my /home/ubuntu/.ssh/authorized_keys
file. I've tried to think about workarounds, but I'm out of ideas.
I am prepared to delete and recreate the entire instance, but would much rather salvage this one if possible. Any ideas?!