Setting up Passwordless login in quiet mode

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Problem: For running the testcases for my utility, prerequisite is to setup a passwordless login to the linux localhost :



Commands that I executed in sequence:



1. touch ~/.ssh/known_hosts
2. ssh-keygen -R <host>
3. ssh-keygen -t rsa -N '' -f "<home>/.ssh/id_rsa"
4. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ; chmod 700 ~/.ssh ; chmod 600 ~/.ssh/authorized_keys
5. ssh -o StrictHostKeyChecking=no <host>


This returns an error "Agent admitted failure to sign using the key"
and asks me to enter the password for the user.



What can I do to eliminate the user interaction completely?










share|improve this question



























    up vote
    0
    down vote

    favorite












    Problem: For running the testcases for my utility, prerequisite is to setup a passwordless login to the linux localhost :



    Commands that I executed in sequence:



    1. touch ~/.ssh/known_hosts
    2. ssh-keygen -R <host>
    3. ssh-keygen -t rsa -N '' -f "<home>/.ssh/id_rsa"
    4. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ; chmod 700 ~/.ssh ; chmod 600 ~/.ssh/authorized_keys
    5. ssh -o StrictHostKeyChecking=no <host>


    This returns an error "Agent admitted failure to sign using the key"
    and asks me to enter the password for the user.



    What can I do to eliminate the user interaction completely?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Problem: For running the testcases for my utility, prerequisite is to setup a passwordless login to the linux localhost :



      Commands that I executed in sequence:



      1. touch ~/.ssh/known_hosts
      2. ssh-keygen -R <host>
      3. ssh-keygen -t rsa -N '' -f "<home>/.ssh/id_rsa"
      4. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ; chmod 700 ~/.ssh ; chmod 600 ~/.ssh/authorized_keys
      5. ssh -o StrictHostKeyChecking=no <host>


      This returns an error "Agent admitted failure to sign using the key"
      and asks me to enter the password for the user.



      What can I do to eliminate the user interaction completely?










      share|improve this question















      Problem: For running the testcases for my utility, prerequisite is to setup a passwordless login to the linux localhost :



      Commands that I executed in sequence:



      1. touch ~/.ssh/known_hosts
      2. ssh-keygen -R <host>
      3. ssh-keygen -t rsa -N '' -f "<home>/.ssh/id_rsa"
      4. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ; chmod 700 ~/.ssh ; chmod 600 ~/.ssh/authorized_keys
      5. ssh -o StrictHostKeyChecking=no <host>


      This returns an error "Agent admitted failure to sign using the key"
      and asks me to enter the password for the user.



      What can I do to eliminate the user interaction completely?







      ssh login






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 26 '17 at 9:09

























      asked Sep 26 '17 at 8:55









      user1731553

      1011




      1011




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I got it Now I am able to login passwordless.
          Commands required are:



          1. ssh-keygen -t rsa -N '' -f "~/.ssh/id_rsa"
          2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ; chmod 700 ~/.ssh ; chmod 600 ~/.ssh/authorized_keys
          3. ssh-add





          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394486%2fsetting-up-passwordless-login-in-quiet-mode%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I got it Now I am able to login passwordless.
            Commands required are:



            1. ssh-keygen -t rsa -N '' -f "~/.ssh/id_rsa"
            2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ; chmod 700 ~/.ssh ; chmod 600 ~/.ssh/authorized_keys
            3. ssh-add





            share|improve this answer
























              up vote
              0
              down vote













              I got it Now I am able to login passwordless.
              Commands required are:



              1. ssh-keygen -t rsa -N '' -f "~/.ssh/id_rsa"
              2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ; chmod 700 ~/.ssh ; chmod 600 ~/.ssh/authorized_keys
              3. ssh-add





              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                I got it Now I am able to login passwordless.
                Commands required are:



                1. ssh-keygen -t rsa -N '' -f "~/.ssh/id_rsa"
                2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ; chmod 700 ~/.ssh ; chmod 600 ~/.ssh/authorized_keys
                3. ssh-add





                share|improve this answer












                I got it Now I am able to login passwordless.
                Commands required are:



                1. ssh-keygen -t rsa -N '' -f "~/.ssh/id_rsa"
                2. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys ; chmod 700 ~/.ssh ; chmod 600 ~/.ssh/authorized_keys
                3. ssh-add






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 26 '17 at 9:29









                user1731553

                1011




                1011



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394486%2fsetting-up-passwordless-login-in-quiet-mode%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay