unprotected private key file

后端 未结 3 404
猫巷女王i
猫巷女王i 2020-12-24 04:44

Can someone explain this to please and what I can do to sort out my permissions issue. Its seems to be stopping me from getting the authenticity of host heroku

相关标签:
3条回答
  • 2020-12-24 05:22

    I would recommend you to re create a set of keys using

    ssh-keygen -t rsa -C '<email>'
    

    for a more secure system. Else changing the permissions to something less open would do.

    To change permissions, use

    chmod  400 ~/.ssh/id_rsa
    
    0 讨论(0)
  • 2020-12-24 05:23

    Just change the permission of the /.ssh/id_rsa file to 400

    #chmod  400 ~/.ssh/id_rsa
    

    This won't make others or from any group members to modify the file.

    0 讨论(0)
  • 2020-12-24 05:34

    Simply reset permissions to your key files to defaults

    sudo chmod 600 ~/.ssh/id_rsa
    sudo chmod 600 ~/.ssh/id_rsa.pub
    
    0 讨论(0)
提交回复
热议问题