2

I was able to access my ubuntu server through putty. but suddenly it stops working. Server is working fine . I can access through aws console

but when I try to access through putty I receive this error.

I don't know why server refusing key it is same what i was using before

this is error no supported authentication methods available (server sent publickey) aws

I created new instance and same thing happend after one day. is it happening because of 777 access to files ? in my project i give 777 access to files after every 1 hours

Stack exchange didn't allow me to post images

1 Answers1

0

Well, here's how it goes.

The .ssh directory needs to have 755 permissions and be owned by the user. The authorized_keys file needs to have 644 permissions and be owned by the user.

If you give 777 access to everything, it very well could be the issue. Any specific reason why you want 777 for everything?

SAUJ
  • 171
  • 1
  • 5