I have been using key pairs to log in to my EC2 instance without any problems until I made some changes to the ec2-user.
I changed the group of the ec2-user (usermod) and changed the default file permission (umask), to give write permissions to the group.
I am not able to log in since this change. I get a "Server refused our key" error for the ec2-user.
The key has not been modified in any way. after changing the ec2-user permissions we are not able to login that is sure .
Has anyone faced similar issues? Are we not expected to change properties/permissions of the default ec2-user? How does one recover from this situation?