I have attached an EBS Volume(Centos based) with a new EC2 instance(Amazon Linux) as a secondary volume. The purpose of attaching it as a secondary volume is- I want to fix permission of /.ssh directory which has broken on previous ec2 instance because of that I was not able to ssh in to it, Putty was throwing "Server refused our key" and asking for password.
Now I don't know how to change permission of ./ssh directory of secondary volume, saw many posts over stackoverflow but didn't find the solution.
Current permission of ./ssh folder of secondary volume is 777.
Please suggest, How Can I change the permission on secondary volume?