Adding SSH private key gives error that 0644 permissions are too open











up vote
8
down vote

favorite
1












I have a generated a ssh private key .key. I want to add it into my ssh in Mac to connect to a remote server, I have only known_hosts file in ~/.ssh directory.



When I try to add it using this command:



ssh-add -K ~/.ssh/myKey.ppk


I get this error:



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/Users/username/.ssh/myKey.ppk' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.









share|improve this question









New contributor




Mohamed Mellal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Possible duplicate of SSH with key passphrase not working
    – Jakuje
    12 hours ago










  • @Jakuje the question is different, leaving this open. It may be a duplicate of a different one though.
    – Harv
    9 hours ago






  • 1




    @Harv thank you for the comment. The question is different, but the answer is still the same. These answers below are just incomplete (leaving alone they are obvious first steps from the first chapter of *nix troubleshooting guide), but they do not lead anywhere. After applying either of them, the OP will find out that OpenSSH does not know how to read the Putty private key format and then he will ask why, which will boil down to my answer.
    – Jakuje
    8 hours ago










  • @Jakuje Interesting. I didn't know that about the different format; the question pertains specifically to permissions, not the file format - but thanks to your contribution, OP will have to deal with that once permissions issues are out of the way.
    – Harv
    8 hours ago















up vote
8
down vote

favorite
1












I have a generated a ssh private key .key. I want to add it into my ssh in Mac to connect to a remote server, I have only known_hosts file in ~/.ssh directory.



When I try to add it using this command:



ssh-add -K ~/.ssh/myKey.ppk


I get this error:



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/Users/username/.ssh/myKey.ppk' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.









share|improve this question









New contributor




Mohamed Mellal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Possible duplicate of SSH with key passphrase not working
    – Jakuje
    12 hours ago










  • @Jakuje the question is different, leaving this open. It may be a duplicate of a different one though.
    – Harv
    9 hours ago






  • 1




    @Harv thank you for the comment. The question is different, but the answer is still the same. These answers below are just incomplete (leaving alone they are obvious first steps from the first chapter of *nix troubleshooting guide), but they do not lead anywhere. After applying either of them, the OP will find out that OpenSSH does not know how to read the Putty private key format and then he will ask why, which will boil down to my answer.
    – Jakuje
    8 hours ago










  • @Jakuje Interesting. I didn't know that about the different format; the question pertains specifically to permissions, not the file format - but thanks to your contribution, OP will have to deal with that once permissions issues are out of the way.
    – Harv
    8 hours ago













up vote
8
down vote

favorite
1









up vote
8
down vote

favorite
1






1





I have a generated a ssh private key .key. I want to add it into my ssh in Mac to connect to a remote server, I have only known_hosts file in ~/.ssh directory.



When I try to add it using this command:



ssh-add -K ~/.ssh/myKey.ppk


I get this error:



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/Users/username/.ssh/myKey.ppk' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.









share|improve this question









New contributor




Mohamed Mellal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a generated a ssh private key .key. I want to add it into my ssh in Mac to connect to a remote server, I have only known_hosts file in ~/.ssh directory.



When I try to add it using this command:



ssh-add -K ~/.ssh/myKey.ppk


I get this error:



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/Users/username/.ssh/myKey.ppk' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.






macos ssh






share|improve this question









New contributor




Mohamed Mellal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Mohamed Mellal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 57 mins ago









muru

361213




361213






New contributor




Mohamed Mellal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 19 hours ago









Mohamed Mellal

412




412




New contributor




Mohamed Mellal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Mohamed Mellal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Mohamed Mellal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Possible duplicate of SSH with key passphrase not working
    – Jakuje
    12 hours ago










  • @Jakuje the question is different, leaving this open. It may be a duplicate of a different one though.
    – Harv
    9 hours ago






  • 1




    @Harv thank you for the comment. The question is different, but the answer is still the same. These answers below are just incomplete (leaving alone they are obvious first steps from the first chapter of *nix troubleshooting guide), but they do not lead anywhere. After applying either of them, the OP will find out that OpenSSH does not know how to read the Putty private key format and then he will ask why, which will boil down to my answer.
    – Jakuje
    8 hours ago










  • @Jakuje Interesting. I didn't know that about the different format; the question pertains specifically to permissions, not the file format - but thanks to your contribution, OP will have to deal with that once permissions issues are out of the way.
    – Harv
    8 hours ago


















  • Possible duplicate of SSH with key passphrase not working
    – Jakuje
    12 hours ago










  • @Jakuje the question is different, leaving this open. It may be a duplicate of a different one though.
    – Harv
    9 hours ago






  • 1




    @Harv thank you for the comment. The question is different, but the answer is still the same. These answers below are just incomplete (leaving alone they are obvious first steps from the first chapter of *nix troubleshooting guide), but they do not lead anywhere. After applying either of them, the OP will find out that OpenSSH does not know how to read the Putty private key format and then he will ask why, which will boil down to my answer.
    – Jakuje
    8 hours ago










  • @Jakuje Interesting. I didn't know that about the different format; the question pertains specifically to permissions, not the file format - but thanks to your contribution, OP will have to deal with that once permissions issues are out of the way.
    – Harv
    8 hours ago
















Possible duplicate of SSH with key passphrase not working
– Jakuje
12 hours ago




Possible duplicate of SSH with key passphrase not working
– Jakuje
12 hours ago












@Jakuje the question is different, leaving this open. It may be a duplicate of a different one though.
– Harv
9 hours ago




@Jakuje the question is different, leaving this open. It may be a duplicate of a different one though.
– Harv
9 hours ago




1




1




@Harv thank you for the comment. The question is different, but the answer is still the same. These answers below are just incomplete (leaving alone they are obvious first steps from the first chapter of *nix troubleshooting guide), but they do not lead anywhere. After applying either of them, the OP will find out that OpenSSH does not know how to read the Putty private key format and then he will ask why, which will boil down to my answer.
– Jakuje
8 hours ago




@Harv thank you for the comment. The question is different, but the answer is still the same. These answers below are just incomplete (leaving alone they are obvious first steps from the first chapter of *nix troubleshooting guide), but they do not lead anywhere. After applying either of them, the OP will find out that OpenSSH does not know how to read the Putty private key format and then he will ask why, which will boil down to my answer.
– Jakuje
8 hours ago












@Jakuje Interesting. I didn't know that about the different format; the question pertains specifically to permissions, not the file format - but thanks to your contribution, OP will have to deal with that once permissions issues are out of the way.
– Harv
8 hours ago




@Jakuje Interesting. I didn't know that about the different format; the question pertains specifically to permissions, not the file format - but thanks to your contribution, OP will have to deal with that once permissions issues are out of the way.
– Harv
8 hours ago










4 Answers
4






active

oldest

votes

















up vote
12
down vote













The error message is displayed because the file permission are set such that it is readable by other users apart from the logged-in user. To overcome the error message, you will need to change the file permissions for the private key such that it is readable only by you.



To do that, run the following command in Terminal:



cd ~/.ssh ; chmod 400 myKey.ppk



This will allow only your user to read (and not write and execute) the private key file and prevent everyone else from reading, writing and executing the file.



This will take care of the error message shown to you and you should be able to add the private key file all right.






share|improve this answer






























    up vote
    7
    down vote













    Go to the terminal and type this command:



    chmod 0600 ~/.ssh/myKey.ppk



    That should be fine.






    share|improve this answer

















    • 5




      Why even allow write access? 0400 would be sufficient.
      – Ruslan
      15 hours ago










    • It's quite possible he might want to update it later. At any rate, 0600 is WAY better than 0644
      – Scott Earle
      48 mins ago


















    up vote
    0
    down vote













    While changing the permissions of the .ppk file will indeed make this warning go away, I would recommend to disable group/others access to .ssh directory altogether:



    cd ~
    chmod g-rwx .ssh
    chmod o-rwx .ssh


    Otherwise, with insecure permissions on your home directory, other users could place files (like authorized_keys) in your .ssh directory, or mess with known_hosts, or change config items, and gain access that way - without having to know either your password or your private key.



    Secondly, in a multi-user environment it would be dubious practice just to retroactively restrict permissions to a key. If a private key has been world-readable on a multi-user system at any given time, it should be considered as already compromised.






    share|improve this answer








    New contributor




    jvb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      up vote
      0
      down vote













      it looks like you copied your private key from Windows or from other computer where you used PuTTY. Unfortunately, the ssh command-line tool does not support this key format and therefore you have two options:




      • Install PuTTY again (it should exist also on your mac)


      • Convert the private key from PuTTY file format to the OpenSSH format (again using PuTTYGen from PuTTY as already described in my previous answer:




        • Open PuttyGen

        • Click Load

        • Load your private key

        • Go to Conversions->Export OpenSSH and export your private key

        • Copy your private key to ~/.ssh/id_rsa




      If you still see the issues using the new exported key (~/.ssh/id_rsa, make sure that the key is not readable by anyone else but you (it is your private key) by removing all the privileges of all the others by running chmod 600 ~/.ssh/id_rsa.






      share|improve this answer





















        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "118"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });






        Mohamed Mellal is a new contributor. Be nice, and check out our Code of Conduct.










         

        draft saved


        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f342371%2fadding-ssh-private-key-gives-error-that-0644-permissions-are-too-open%23new-answer', 'question_page');
        }
        );

        Post as a guest
































        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        12
        down vote













        The error message is displayed because the file permission are set such that it is readable by other users apart from the logged-in user. To overcome the error message, you will need to change the file permissions for the private key such that it is readable only by you.



        To do that, run the following command in Terminal:



        cd ~/.ssh ; chmod 400 myKey.ppk



        This will allow only your user to read (and not write and execute) the private key file and prevent everyone else from reading, writing and executing the file.



        This will take care of the error message shown to you and you should be able to add the private key file all right.






        share|improve this answer



























          up vote
          12
          down vote













          The error message is displayed because the file permission are set such that it is readable by other users apart from the logged-in user. To overcome the error message, you will need to change the file permissions for the private key such that it is readable only by you.



          To do that, run the following command in Terminal:



          cd ~/.ssh ; chmod 400 myKey.ppk



          This will allow only your user to read (and not write and execute) the private key file and prevent everyone else from reading, writing and executing the file.



          This will take care of the error message shown to you and you should be able to add the private key file all right.






          share|improve this answer

























            up vote
            12
            down vote










            up vote
            12
            down vote









            The error message is displayed because the file permission are set such that it is readable by other users apart from the logged-in user. To overcome the error message, you will need to change the file permissions for the private key such that it is readable only by you.



            To do that, run the following command in Terminal:



            cd ~/.ssh ; chmod 400 myKey.ppk



            This will allow only your user to read (and not write and execute) the private key file and prevent everyone else from reading, writing and executing the file.



            This will take care of the error message shown to you and you should be able to add the private key file all right.






            share|improve this answer














            The error message is displayed because the file permission are set such that it is readable by other users apart from the logged-in user. To overcome the error message, you will need to change the file permissions for the private key such that it is readable only by you.



            To do that, run the following command in Terminal:



            cd ~/.ssh ; chmod 400 myKey.ppk



            This will allow only your user to read (and not write and execute) the private key file and prevent everyone else from reading, writing and executing the file.



            This will take care of the error message shown to you and you should be able to add the private key file all right.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 18 hours ago

























            answered 19 hours ago









            Nimesh Neema

            11.3k42962




            11.3k42962
























                up vote
                7
                down vote













                Go to the terminal and type this command:



                chmod 0600 ~/.ssh/myKey.ppk



                That should be fine.






                share|improve this answer

















                • 5




                  Why even allow write access? 0400 would be sufficient.
                  – Ruslan
                  15 hours ago










                • It's quite possible he might want to update it later. At any rate, 0600 is WAY better than 0644
                  – Scott Earle
                  48 mins ago















                up vote
                7
                down vote













                Go to the terminal and type this command:



                chmod 0600 ~/.ssh/myKey.ppk



                That should be fine.






                share|improve this answer

















                • 5




                  Why even allow write access? 0400 would be sufficient.
                  – Ruslan
                  15 hours ago










                • It's quite possible he might want to update it later. At any rate, 0600 is WAY better than 0644
                  – Scott Earle
                  48 mins ago













                up vote
                7
                down vote










                up vote
                7
                down vote









                Go to the terminal and type this command:



                chmod 0600 ~/.ssh/myKey.ppk



                That should be fine.






                share|improve this answer












                Go to the terminal and type this command:



                chmod 0600 ~/.ssh/myKey.ppk



                That should be fine.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 19 hours ago









                Scott Earle

                3,110621




                3,110621








                • 5




                  Why even allow write access? 0400 would be sufficient.
                  – Ruslan
                  15 hours ago










                • It's quite possible he might want to update it later. At any rate, 0600 is WAY better than 0644
                  – Scott Earle
                  48 mins ago














                • 5




                  Why even allow write access? 0400 would be sufficient.
                  – Ruslan
                  15 hours ago










                • It's quite possible he might want to update it later. At any rate, 0600 is WAY better than 0644
                  – Scott Earle
                  48 mins ago








                5




                5




                Why even allow write access? 0400 would be sufficient.
                – Ruslan
                15 hours ago




                Why even allow write access? 0400 would be sufficient.
                – Ruslan
                15 hours ago












                It's quite possible he might want to update it later. At any rate, 0600 is WAY better than 0644
                – Scott Earle
                48 mins ago




                It's quite possible he might want to update it later. At any rate, 0600 is WAY better than 0644
                – Scott Earle
                48 mins ago










                up vote
                0
                down vote













                While changing the permissions of the .ppk file will indeed make this warning go away, I would recommend to disable group/others access to .ssh directory altogether:



                cd ~
                chmod g-rwx .ssh
                chmod o-rwx .ssh


                Otherwise, with insecure permissions on your home directory, other users could place files (like authorized_keys) in your .ssh directory, or mess with known_hosts, or change config items, and gain access that way - without having to know either your password or your private key.



                Secondly, in a multi-user environment it would be dubious practice just to retroactively restrict permissions to a key. If a private key has been world-readable on a multi-user system at any given time, it should be considered as already compromised.






                share|improve this answer








                New contributor




                jvb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                  up vote
                  0
                  down vote













                  While changing the permissions of the .ppk file will indeed make this warning go away, I would recommend to disable group/others access to .ssh directory altogether:



                  cd ~
                  chmod g-rwx .ssh
                  chmod o-rwx .ssh


                  Otherwise, with insecure permissions on your home directory, other users could place files (like authorized_keys) in your .ssh directory, or mess with known_hosts, or change config items, and gain access that way - without having to know either your password or your private key.



                  Secondly, in a multi-user environment it would be dubious practice just to retroactively restrict permissions to a key. If a private key has been world-readable on a multi-user system at any given time, it should be considered as already compromised.






                  share|improve this answer








                  New contributor




                  jvb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.




















                    up vote
                    0
                    down vote










                    up vote
                    0
                    down vote









                    While changing the permissions of the .ppk file will indeed make this warning go away, I would recommend to disable group/others access to .ssh directory altogether:



                    cd ~
                    chmod g-rwx .ssh
                    chmod o-rwx .ssh


                    Otherwise, with insecure permissions on your home directory, other users could place files (like authorized_keys) in your .ssh directory, or mess with known_hosts, or change config items, and gain access that way - without having to know either your password or your private key.



                    Secondly, in a multi-user environment it would be dubious practice just to retroactively restrict permissions to a key. If a private key has been world-readable on a multi-user system at any given time, it should be considered as already compromised.






                    share|improve this answer








                    New contributor




                    jvb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    While changing the permissions of the .ppk file will indeed make this warning go away, I would recommend to disable group/others access to .ssh directory altogether:



                    cd ~
                    chmod g-rwx .ssh
                    chmod o-rwx .ssh


                    Otherwise, with insecure permissions on your home directory, other users could place files (like authorized_keys) in your .ssh directory, or mess with known_hosts, or change config items, and gain access that way - without having to know either your password or your private key.



                    Secondly, in a multi-user environment it would be dubious practice just to retroactively restrict permissions to a key. If a private key has been world-readable on a multi-user system at any given time, it should be considered as already compromised.







                    share|improve this answer








                    New contributor




                    jvb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    share|improve this answer



                    share|improve this answer






                    New contributor




                    jvb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    answered 13 hours ago









                    jvb

                    1011




                    1011




                    New contributor




                    jvb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.





                    New contributor





                    jvb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.






                    jvb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.






















                        up vote
                        0
                        down vote













                        it looks like you copied your private key from Windows or from other computer where you used PuTTY. Unfortunately, the ssh command-line tool does not support this key format and therefore you have two options:




                        • Install PuTTY again (it should exist also on your mac)


                        • Convert the private key from PuTTY file format to the OpenSSH format (again using PuTTYGen from PuTTY as already described in my previous answer:




                          • Open PuttyGen

                          • Click Load

                          • Load your private key

                          • Go to Conversions->Export OpenSSH and export your private key

                          • Copy your private key to ~/.ssh/id_rsa




                        If you still see the issues using the new exported key (~/.ssh/id_rsa, make sure that the key is not readable by anyone else but you (it is your private key) by removing all the privileges of all the others by running chmod 600 ~/.ssh/id_rsa.






                        share|improve this answer

























                          up vote
                          0
                          down vote













                          it looks like you copied your private key from Windows or from other computer where you used PuTTY. Unfortunately, the ssh command-line tool does not support this key format and therefore you have two options:




                          • Install PuTTY again (it should exist also on your mac)


                          • Convert the private key from PuTTY file format to the OpenSSH format (again using PuTTYGen from PuTTY as already described in my previous answer:




                            • Open PuttyGen

                            • Click Load

                            • Load your private key

                            • Go to Conversions->Export OpenSSH and export your private key

                            • Copy your private key to ~/.ssh/id_rsa




                          If you still see the issues using the new exported key (~/.ssh/id_rsa, make sure that the key is not readable by anyone else but you (it is your private key) by removing all the privileges of all the others by running chmod 600 ~/.ssh/id_rsa.






                          share|improve this answer























                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            it looks like you copied your private key from Windows or from other computer where you used PuTTY. Unfortunately, the ssh command-line tool does not support this key format and therefore you have two options:




                            • Install PuTTY again (it should exist also on your mac)


                            • Convert the private key from PuTTY file format to the OpenSSH format (again using PuTTYGen from PuTTY as already described in my previous answer:




                              • Open PuttyGen

                              • Click Load

                              • Load your private key

                              • Go to Conversions->Export OpenSSH and export your private key

                              • Copy your private key to ~/.ssh/id_rsa




                            If you still see the issues using the new exported key (~/.ssh/id_rsa, make sure that the key is not readable by anyone else but you (it is your private key) by removing all the privileges of all the others by running chmod 600 ~/.ssh/id_rsa.






                            share|improve this answer












                            it looks like you copied your private key from Windows or from other computer where you used PuTTY. Unfortunately, the ssh command-line tool does not support this key format and therefore you have two options:




                            • Install PuTTY again (it should exist also on your mac)


                            • Convert the private key from PuTTY file format to the OpenSSH format (again using PuTTYGen from PuTTY as already described in my previous answer:




                              • Open PuttyGen

                              • Click Load

                              • Load your private key

                              • Go to Conversions->Export OpenSSH and export your private key

                              • Copy your private key to ~/.ssh/id_rsa




                            If you still see the issues using the new exported key (~/.ssh/id_rsa, make sure that the key is not readable by anyone else but you (it is your private key) by removing all the privileges of all the others by running chmod 600 ~/.ssh/id_rsa.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered 8 hours ago









                            Jakuje

                            1,170416




                            1,170416






















                                Mohamed Mellal is a new contributor. Be nice, and check out our Code of Conduct.










                                 

                                draft saved


                                draft discarded


















                                Mohamed Mellal is a new contributor. Be nice, and check out our Code of Conduct.













                                Mohamed Mellal is a new contributor. Be nice, and check out our Code of Conduct.












                                Mohamed Mellal is a new contributor. Be nice, and check out our Code of Conduct.















                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f342371%2fadding-ssh-private-key-gives-error-that-0644-permissions-are-too-open%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest




















































































                                Popular posts from this blog

                                mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

                                How to change which sound is reproduced for terminal bell?

                                Can I use Tabulator js library in my java Spring + Thymeleaf project?