Server refused our key, set authorized_keys perrmissions to 777
<p>I was copying some files from my home directory on my ec2 instance, and in a fit of laziness, I ran the command sudo chmod 777 /home/ec2-user/*.  I guess this made my .ssh folder and possibly the authorized_keys have 777 privileges as well.  Well it turns out that if authorized_keys is set to 777, you cannot SSH into the box with those keys (since another user could have updated it).  </p>

<p>My question is, how can I fix this and log into my box again?  This is an ec2 instance, so I have to ssh in.  </p>