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
  • SSH needs specific permissions. Have a look at this answer to see if it helps. If it doesn't help report back a bit more info superuser.com/questions/215504/…
    – Tim
    Jul 16, 2022 at 22:48

1 Answer 1

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?

4
  • i am giving these permissions to my project file not .ssh Jul 18, 2022 at 0:53
  • Can you please check whether your .ssh permissions are ok?
    – SAUJ
    Jul 18, 2022 at 2:50
  • can you please tell me command how I can check permissions for .ssh Jul 18, 2022 at 3:06
  • A simple list command world work. ll
    – SAUJ
    Jul 18, 2022 at 4:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.