I want to gather the host keys but ssh-keyscan command is not found on my linux. Anyway to achieve the same with some other commands

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











up vote
0
down vote

favorite












I want to gather the host keys but ssh-keyscan command is not found on my linux. Anyway to achieve the same with some other commands without adding this command explicitly.



I am running with Wind River Linux 8.0.







share|improve this question






















  • windriver Linux, or Wind River Linux?
    – EightBitTony
    Jan 23 at 9:53










  • @EightBitTony Wind River Linux
    – BRT
    Jan 23 at 10:47











  • You might be able to do something like ssh -o StrictHostKeyChecking=no -N $hostname for each host, and then pull all the keys out of ~/.ssh/known_hosts
    – Patrick
    Jan 23 at 13:26















up vote
0
down vote

favorite












I want to gather the host keys but ssh-keyscan command is not found on my linux. Anyway to achieve the same with some other commands without adding this command explicitly.



I am running with Wind River Linux 8.0.







share|improve this question






















  • windriver Linux, or Wind River Linux?
    – EightBitTony
    Jan 23 at 9:53










  • @EightBitTony Wind River Linux
    – BRT
    Jan 23 at 10:47











  • You might be able to do something like ssh -o StrictHostKeyChecking=no -N $hostname for each host, and then pull all the keys out of ~/.ssh/known_hosts
    – Patrick
    Jan 23 at 13:26













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to gather the host keys but ssh-keyscan command is not found on my linux. Anyway to achieve the same with some other commands without adding this command explicitly.



I am running with Wind River Linux 8.0.







share|improve this question














I want to gather the host keys but ssh-keyscan command is not found on my linux. Anyway to achieve the same with some other commands without adding this command explicitly.



I am running with Wind River Linux 8.0.









share|improve this question













share|improve this question




share|improve this question








edited Jan 23 at 10:47

























asked Jan 23 at 9:19









BRT

184




184











  • windriver Linux, or Wind River Linux?
    – EightBitTony
    Jan 23 at 9:53










  • @EightBitTony Wind River Linux
    – BRT
    Jan 23 at 10:47











  • You might be able to do something like ssh -o StrictHostKeyChecking=no -N $hostname for each host, and then pull all the keys out of ~/.ssh/known_hosts
    – Patrick
    Jan 23 at 13:26

















  • windriver Linux, or Wind River Linux?
    – EightBitTony
    Jan 23 at 9:53










  • @EightBitTony Wind River Linux
    – BRT
    Jan 23 at 10:47











  • You might be able to do something like ssh -o StrictHostKeyChecking=no -N $hostname for each host, and then pull all the keys out of ~/.ssh/known_hosts
    – Patrick
    Jan 23 at 13:26
















windriver Linux, or Wind River Linux?
– EightBitTony
Jan 23 at 9:53




windriver Linux, or Wind River Linux?
– EightBitTony
Jan 23 at 9:53












@EightBitTony Wind River Linux
– BRT
Jan 23 at 10:47





@EightBitTony Wind River Linux
– BRT
Jan 23 at 10:47













You might be able to do something like ssh -o StrictHostKeyChecking=no -N $hostname for each host, and then pull all the keys out of ~/.ssh/known_hosts
– Patrick
Jan 23 at 13:26





You might be able to do something like ssh -o StrictHostKeyChecking=no -N $hostname for each host, and then pull all the keys out of ~/.ssh/known_hosts
– Patrick
Jan 23 at 13:26











1 Answer
1






active

oldest

votes

















up vote
0
down vote













You may check before which keys are available via ssh <host> -Q key-plain. At least you can gather the host key in a visualized way via ssh <host> -o VisualHostKey=yes. I am not sure if this is reversible.






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%2f419038%2fi-want-to-gather-the-host-keys-but-ssh-keyscan-command-is-not-found-on-my-linux%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













    You may check before which keys are available via ssh <host> -Q key-plain. At least you can gather the host key in a visualized way via ssh <host> -o VisualHostKey=yes. I am not sure if this is reversible.






    share|improve this answer


























      up vote
      0
      down vote













      You may check before which keys are available via ssh <host> -Q key-plain. At least you can gather the host key in a visualized way via ssh <host> -o VisualHostKey=yes. I am not sure if this is reversible.






      share|improve this answer
























        up vote
        0
        down vote










        up vote
        0
        down vote









        You may check before which keys are available via ssh <host> -Q key-plain. At least you can gather the host key in a visualized way via ssh <host> -o VisualHostKey=yes. I am not sure if this is reversible.






        share|improve this answer














        You may check before which keys are available via ssh <host> -Q key-plain. At least you can gather the host key in a visualized way via ssh <host> -o VisualHostKey=yes. I am not sure if this is reversible.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 23 at 14:33

























        answered Jan 23 at 14:22









        U880D

        401314




        401314






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f419038%2fi-want-to-gather-the-host-keys-but-ssh-keyscan-command-is-not-found-on-my-linux%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?