ssh-copy-id to remote host

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











up vote
0
down vote

favorite












I have a question for you! I a made an ssh-key via github.Now i have two machines lets name them local1 and one remote1. from my local1 machine i made ssh-copy-id remote1t@192.168.x.xxx and then i ssh to the remote1 host and everything works fine no warnings no nothing! But if i try to ssh from the remote1 to my local1 machine i get something like



The authenticity of host '192.168.x.xxx (192.168.x.xxx)' can't be established.
ECDSA key fingerprint is -----------------------------------------.
Are you sure you want to continue connecting (yes/no)?


Shouldn't I be able to connect from the remote1 machine to the local1 machine without this warning? I mean that i have already copied the ssh id Do i have to ssh-copy-id from remote1 to local1 too? thank you for your time guys!










share|improve this question

























    up vote
    0
    down vote

    favorite












    I have a question for you! I a made an ssh-key via github.Now i have two machines lets name them local1 and one remote1. from my local1 machine i made ssh-copy-id remote1t@192.168.x.xxx and then i ssh to the remote1 host and everything works fine no warnings no nothing! But if i try to ssh from the remote1 to my local1 machine i get something like



    The authenticity of host '192.168.x.xxx (192.168.x.xxx)' can't be established.
    ECDSA key fingerprint is -----------------------------------------.
    Are you sure you want to continue connecting (yes/no)?


    Shouldn't I be able to connect from the remote1 machine to the local1 machine without this warning? I mean that i have already copied the ssh id Do i have to ssh-copy-id from remote1 to local1 too? thank you for your time guys!










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a question for you! I a made an ssh-key via github.Now i have two machines lets name them local1 and one remote1. from my local1 machine i made ssh-copy-id remote1t@192.168.x.xxx and then i ssh to the remote1 host and everything works fine no warnings no nothing! But if i try to ssh from the remote1 to my local1 machine i get something like



      The authenticity of host '192.168.x.xxx (192.168.x.xxx)' can't be established.
      ECDSA key fingerprint is -----------------------------------------.
      Are you sure you want to continue connecting (yes/no)?


      Shouldn't I be able to connect from the remote1 machine to the local1 machine without this warning? I mean that i have already copied the ssh id Do i have to ssh-copy-id from remote1 to local1 too? thank you for your time guys!










      share|improve this question













      I have a question for you! I a made an ssh-key via github.Now i have two machines lets name them local1 and one remote1. from my local1 machine i made ssh-copy-id remote1t@192.168.x.xxx and then i ssh to the remote1 host and everything works fine no warnings no nothing! But if i try to ssh from the remote1 to my local1 machine i get something like



      The authenticity of host '192.168.x.xxx (192.168.x.xxx)' can't be established.
      ECDSA key fingerprint is -----------------------------------------.
      Are you sure you want to continue connecting (yes/no)?


      Shouldn't I be able to connect from the remote1 machine to the local1 machine without this warning? I mean that i have already copied the ssh id Do i have to ssh-copy-id from remote1 to local1 too? thank you for your time guys!







      linux ssh






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 9 '17 at 15:50









      Ioannis K

      1




      1




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          There are two separate keys at play here.



          When you use ssh-copy-id remote, you are copying the user key (identity) as an authorized_user on the remote machine. To use public-key authentication, you will need to ensure that an appropriate user public key is stored on each machine to which you wish to ssh.



          The challenge you are receiving states that you cannot verify the host key of the machine local1 when connecting from remote1. If you answer yes at the prompt in your question, you will connect from remote1 to local1, and the publickey of local1 will be stored on remote1 so that you do not receive this challenge again. With default settings, you will receive this warning the first time you connect to any new machine.






          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%2f397054%2fssh-copy-id-to-remote-host%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













            There are two separate keys at play here.



            When you use ssh-copy-id remote, you are copying the user key (identity) as an authorized_user on the remote machine. To use public-key authentication, you will need to ensure that an appropriate user public key is stored on each machine to which you wish to ssh.



            The challenge you are receiving states that you cannot verify the host key of the machine local1 when connecting from remote1. If you answer yes at the prompt in your question, you will connect from remote1 to local1, and the publickey of local1 will be stored on remote1 so that you do not receive this challenge again. With default settings, you will receive this warning the first time you connect to any new machine.






            share|improve this answer
























              up vote
              0
              down vote













              There are two separate keys at play here.



              When you use ssh-copy-id remote, you are copying the user key (identity) as an authorized_user on the remote machine. To use public-key authentication, you will need to ensure that an appropriate user public key is stored on each machine to which you wish to ssh.



              The challenge you are receiving states that you cannot verify the host key of the machine local1 when connecting from remote1. If you answer yes at the prompt in your question, you will connect from remote1 to local1, and the publickey of local1 will be stored on remote1 so that you do not receive this challenge again. With default settings, you will receive this warning the first time you connect to any new machine.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                There are two separate keys at play here.



                When you use ssh-copy-id remote, you are copying the user key (identity) as an authorized_user on the remote machine. To use public-key authentication, you will need to ensure that an appropriate user public key is stored on each machine to which you wish to ssh.



                The challenge you are receiving states that you cannot verify the host key of the machine local1 when connecting from remote1. If you answer yes at the prompt in your question, you will connect from remote1 to local1, and the publickey of local1 will be stored on remote1 so that you do not receive this challenge again. With default settings, you will receive this warning the first time you connect to any new machine.






                share|improve this answer












                There are two separate keys at play here.



                When you use ssh-copy-id remote, you are copying the user key (identity) as an authorized_user on the remote machine. To use public-key authentication, you will need to ensure that an appropriate user public key is stored on each machine to which you wish to ssh.



                The challenge you are receiving states that you cannot verify the host key of the machine local1 when connecting from remote1. If you answer yes at the prompt in your question, you will connect from remote1 to local1, and the publickey of local1 will be stored on remote1 so that you do not receive this challenge again. With default settings, you will receive this warning the first time you connect to any new machine.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 9 '17 at 16:01









                user4556274

                4,98811123




                4,98811123



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f397054%2fssh-copy-id-to-remote-host%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?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?