SSH Key: “Permissions 0644 for 'id_rsa.pub' are too open.” on mac

后端 未结 17 2162
[愿得一人]
[愿得一人] 2020-11-28 00:50

I generate a ssh key pair on my mac and add the public key to my ubuntu server(in fact, it is a virtual machine on my mac),but when I try to login the ubuntu server,it says:

17条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 01:36

    In my case, it was a .pem file. Turns out holds good for that too. Changed permissions of the file and it worked.

    chmod 400 ~/.ssh/dev-shared.pem

    Thanks for all of those who helped above.

提交回复
热议问题