Reputation: 89
I am getting Error When Trying to access ec2 instance using SSH . Showing me Error "No Supported Authentication Method Available ( Server Send Public Key )
While i was Working on SSH Unfortunately i gave 777 permission to All Directory and then i am getting this Issue
Wish will get Solution
Upvotes: 0
Views: 127
Reputation: 89
Okay So Finally I am able to Solve this Issue and How ?
What i did ?
I create New Instance in Same Location ( us-west-2c ) and Detach my Original Disk and Attach with new instance . Then Change the Permission of Keys like
got help : http://blog.celingest.com/en/2013/11/14/replace-lost-keypair-ec2-instance/ https://www.youtube.com/watch?v=PhvfXMDICDo
Just Do't need Cat command . After mount use Cd /mst/recovery and then Type command to give right permission
Wish it will help someone like me who made a great mistake
Upvotes: 0
Reputation: 34307
IMHO the chmod 777 has given too lax permissions to the .ssh directory that contains the authorized_keys file. For this reason no ssh, scp or sftp access will work.
To fix it, detatch the EBS volume from the instance, mount it on another instance, fix the permissions and reattach it again
Upvotes: 1