Trying to SSH into an Amazon Ec2 instance - permission error

后端 未结 29 3424
一生所求
一生所求 2020-11-27 08:51

This is probably a stupidly simple question to some :)

I\'ve created a new linux instance on Amazon EC2, and as part of that downloaded the .pem file to allow me to

29条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 09:16

    SSH keys and file permission best practices:

    • .ssh directory - 0700 (only by owner)
    • private key/.pem file - 0400 (read only by owner)
    • public key/.pub file - 0600 (read & write only by owner)

      chmod XXXX file/directory

提交回复
热议问题