To generate key for AWS server using ssh-keygen from .pem for PuTTY Announcing the arrival of...

What would be the ideal power source for a cybernetic eye?

Why did the rest of the Eastern Bloc not invade Yugoslavia?

What does an IRS interview request entail when called in to verify expenses for a sole proprietor small business?

2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?

What is Arya's weapon design?

The logistics of corpse disposal

Apollo command module space walk?

Ring Automorphisms that fix 1.

Can I cast Passwall to drop an enemy into a 20-foot pit?

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

What is known about the Ubaid lizard-people figurines?

Should I use a zero-interest credit card for a large one-time purchase?

Storing hydrofluoric acid before the invention of plastics

How do I stop a creek from eroding my steep embankment?

Why are both D and D# fitting into my E minor key?

Sci-Fi book where patients in a coma ward all live in a subconscious world linked together

Gordon Ramsay Pudding Recipe

What does F' and F" mean?

Why did the IBM 650 use bi-quinary?

Fundamental Solution of the Pell Equation

How discoverable are IPv6 addresses and AAAA names by potential attackers?

In predicate logic, does existential quantification (∃) include universal quantification (∀), i.e. can 'some' imply 'all'?

Why are Kinder Surprise Eggs illegal in the USA?

Compare a given version number in the form major.minor.build.patch and see if one is less than the other



To generate key for AWS server using ssh-keygen from .pem for PuTTY



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!created pub/priv keys using putty, created .ssh folder and authorized_keys, still not workingSSH from PuTTy to Debian “authorized_keys is not a regular file” ErrorCopying SSH Key-Pair Generated by Putty to MacOSSSH Public Key Authentication not working with PuTTYSSH - Putty Private Key and PassphraseHow to use PEM keys from EC2how to SSH to EC2 without explicitly using the pem key?Generate new keys for puttyFingerprint of PEM ssh keyConnecting AWS from Windows. Error: Using username “ec2-user”. Server refused our key





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















AWS gave me a private key in the format of .pem. I am trying to use it with PuTTY but failed and I read I need to generate a key with PuTTYgen but PuTTYgen is only for Windows. So I am trying to use the Linux command ssh-keygen. But what is exactly the command that can generate such a key that PuTTY can use?



BTW, I can connect with console using ssh without problem with the .pem file.










share|improve this question

























  • As Martin's answer mentions, putty and puttygen are available for Linux. In Ubuntu for example, puttygen is part of the putty-tools package.

    – Andrew Schulman
    May 18 '15 at 8:36


















1















AWS gave me a private key in the format of .pem. I am trying to use it with PuTTY but failed and I read I need to generate a key with PuTTYgen but PuTTYgen is only for Windows. So I am trying to use the Linux command ssh-keygen. But what is exactly the command that can generate such a key that PuTTY can use?



BTW, I can connect with console using ssh without problem with the .pem file.










share|improve this question

























  • As Martin's answer mentions, putty and puttygen are available for Linux. In Ubuntu for example, puttygen is part of the putty-tools package.

    – Andrew Schulman
    May 18 '15 at 8:36














1












1








1


1






AWS gave me a private key in the format of .pem. I am trying to use it with PuTTY but failed and I read I need to generate a key with PuTTYgen but PuTTYgen is only for Windows. So I am trying to use the Linux command ssh-keygen. But what is exactly the command that can generate such a key that PuTTY can use?



BTW, I can connect with console using ssh without problem with the .pem file.










share|improve this question
















AWS gave me a private key in the format of .pem. I am trying to use it with PuTTY but failed and I read I need to generate a key with PuTTYgen but PuTTYgen is only for Windows. So I am trying to use the Linux command ssh-keygen. But what is exactly the command that can generate such a key that PuTTY can use?



BTW, I can connect with console using ssh without problem with the .pem file.







ssh amazon-web-services ssh-keys putty






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 18 '15 at 8:49









kasperd

26.8k1252104




26.8k1252104










asked May 18 '15 at 7:57









AlexAlex

82




82













  • As Martin's answer mentions, putty and puttygen are available for Linux. In Ubuntu for example, puttygen is part of the putty-tools package.

    – Andrew Schulman
    May 18 '15 at 8:36



















  • As Martin's answer mentions, putty and puttygen are available for Linux. In Ubuntu for example, puttygen is part of the putty-tools package.

    – Andrew Schulman
    May 18 '15 at 8:36

















As Martin's answer mentions, putty and puttygen are available for Linux. In Ubuntu for example, puttygen is part of the putty-tools package.

– Andrew Schulman
May 18 '15 at 8:36





As Martin's answer mentions, putty and puttygen are available for Linux. In Ubuntu for example, puttygen is part of the putty-tools package.

– Andrew Schulman
May 18 '15 at 8:36










2 Answers
2






active

oldest

votes


















3














To convert the .pem key to the .ppk key using the *nix command-line version of the puttygen use:



puttygen mykey.pem -o mykey.ppk


See the puttygen man page.



There's PuTTY rpm and "putty-tools" package available for many *nix distributions.





The .ppk format is proprietary to PuTTY, so tools outside of PuTTY toolset (like the ssh-keygen) do not support it.



Note that you can convert the key on Windows using GUI version of PuTTYgen and still use the converted key on Linux.






share|improve this answer


























  • Thanks. It seems opensuse does not have such tool package unfortunately. Maybe console ssh is good enough.

    – Alex
    May 18 '15 at 10:09











  • I meant to use ssh command in terminal to connect instead of putty. Sorry, in fact puttygen is available when I install putty in opensuse. I thought there's a package called puttygen. Thanks a lot.

    – Alex
    May 18 '15 at 10:49











  • Sorry. New to the site, I tried to upvote and failed so thought that I couldn't do nth...

    – Alex
    May 18 '15 at 13:04



















0














You need to convert the provided PEM file to PPK file using Puttygen tool in Windows.




  • Open puttygen and click on import key option in the menu.

  • Once it is imported you will see the button which says "Save Private
    Key".

  • Save it as a xyz.ppk file name and they load that ppk file in putty
    and login.


Hope this helps.






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "2"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f692679%2fto-generate-key-for-aws-server-using-ssh-keygen-from-pem-for-putty%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    To convert the .pem key to the .ppk key using the *nix command-line version of the puttygen use:



    puttygen mykey.pem -o mykey.ppk


    See the puttygen man page.



    There's PuTTY rpm and "putty-tools" package available for many *nix distributions.





    The .ppk format is proprietary to PuTTY, so tools outside of PuTTY toolset (like the ssh-keygen) do not support it.



    Note that you can convert the key on Windows using GUI version of PuTTYgen and still use the converted key on Linux.






    share|improve this answer


























    • Thanks. It seems opensuse does not have such tool package unfortunately. Maybe console ssh is good enough.

      – Alex
      May 18 '15 at 10:09











    • I meant to use ssh command in terminal to connect instead of putty. Sorry, in fact puttygen is available when I install putty in opensuse. I thought there's a package called puttygen. Thanks a lot.

      – Alex
      May 18 '15 at 10:49











    • Sorry. New to the site, I tried to upvote and failed so thought that I couldn't do nth...

      – Alex
      May 18 '15 at 13:04
















    3














    To convert the .pem key to the .ppk key using the *nix command-line version of the puttygen use:



    puttygen mykey.pem -o mykey.ppk


    See the puttygen man page.



    There's PuTTY rpm and "putty-tools" package available for many *nix distributions.





    The .ppk format is proprietary to PuTTY, so tools outside of PuTTY toolset (like the ssh-keygen) do not support it.



    Note that you can convert the key on Windows using GUI version of PuTTYgen and still use the converted key on Linux.






    share|improve this answer


























    • Thanks. It seems opensuse does not have such tool package unfortunately. Maybe console ssh is good enough.

      – Alex
      May 18 '15 at 10:09











    • I meant to use ssh command in terminal to connect instead of putty. Sorry, in fact puttygen is available when I install putty in opensuse. I thought there's a package called puttygen. Thanks a lot.

      – Alex
      May 18 '15 at 10:49











    • Sorry. New to the site, I tried to upvote and failed so thought that I couldn't do nth...

      – Alex
      May 18 '15 at 13:04














    3












    3








    3







    To convert the .pem key to the .ppk key using the *nix command-line version of the puttygen use:



    puttygen mykey.pem -o mykey.ppk


    See the puttygen man page.



    There's PuTTY rpm and "putty-tools" package available for many *nix distributions.





    The .ppk format is proprietary to PuTTY, so tools outside of PuTTY toolset (like the ssh-keygen) do not support it.



    Note that you can convert the key on Windows using GUI version of PuTTYgen and still use the converted key on Linux.






    share|improve this answer















    To convert the .pem key to the .ppk key using the *nix command-line version of the puttygen use:



    puttygen mykey.pem -o mykey.ppk


    See the puttygen man page.



    There's PuTTY rpm and "putty-tools" package available for many *nix distributions.





    The .ppk format is proprietary to PuTTY, so tools outside of PuTTY toolset (like the ssh-keygen) do not support it.



    Note that you can convert the key on Windows using GUI version of PuTTYgen and still use the converted key on Linux.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 11 mins ago

























    answered May 18 '15 at 8:26









    Martin PrikrylMartin Prikryl

    5,3012558




    5,3012558













    • Thanks. It seems opensuse does not have such tool package unfortunately. Maybe console ssh is good enough.

      – Alex
      May 18 '15 at 10:09











    • I meant to use ssh command in terminal to connect instead of putty. Sorry, in fact puttygen is available when I install putty in opensuse. I thought there's a package called puttygen. Thanks a lot.

      – Alex
      May 18 '15 at 10:49











    • Sorry. New to the site, I tried to upvote and failed so thought that I couldn't do nth...

      – Alex
      May 18 '15 at 13:04



















    • Thanks. It seems opensuse does not have such tool package unfortunately. Maybe console ssh is good enough.

      – Alex
      May 18 '15 at 10:09











    • I meant to use ssh command in terminal to connect instead of putty. Sorry, in fact puttygen is available when I install putty in opensuse. I thought there's a package called puttygen. Thanks a lot.

      – Alex
      May 18 '15 at 10:49











    • Sorry. New to the site, I tried to upvote and failed so thought that I couldn't do nth...

      – Alex
      May 18 '15 at 13:04

















    Thanks. It seems opensuse does not have such tool package unfortunately. Maybe console ssh is good enough.

    – Alex
    May 18 '15 at 10:09





    Thanks. It seems opensuse does not have such tool package unfortunately. Maybe console ssh is good enough.

    – Alex
    May 18 '15 at 10:09













    I meant to use ssh command in terminal to connect instead of putty. Sorry, in fact puttygen is available when I install putty in opensuse. I thought there's a package called puttygen. Thanks a lot.

    – Alex
    May 18 '15 at 10:49





    I meant to use ssh command in terminal to connect instead of putty. Sorry, in fact puttygen is available when I install putty in opensuse. I thought there's a package called puttygen. Thanks a lot.

    – Alex
    May 18 '15 at 10:49













    Sorry. New to the site, I tried to upvote and failed so thought that I couldn't do nth...

    – Alex
    May 18 '15 at 13:04





    Sorry. New to the site, I tried to upvote and failed so thought that I couldn't do nth...

    – Alex
    May 18 '15 at 13:04













    0














    You need to convert the provided PEM file to PPK file using Puttygen tool in Windows.




    • Open puttygen and click on import key option in the menu.

    • Once it is imported you will see the button which says "Save Private
      Key".

    • Save it as a xyz.ppk file name and they load that ppk file in putty
      and login.


    Hope this helps.






    share|improve this answer




























      0














      You need to convert the provided PEM file to PPK file using Puttygen tool in Windows.




      • Open puttygen and click on import key option in the menu.

      • Once it is imported you will see the button which says "Save Private
        Key".

      • Save it as a xyz.ppk file name and they load that ppk file in putty
        and login.


      Hope this helps.






      share|improve this answer


























        0












        0








        0







        You need to convert the provided PEM file to PPK file using Puttygen tool in Windows.




        • Open puttygen and click on import key option in the menu.

        • Once it is imported you will see the button which says "Save Private
          Key".

        • Save it as a xyz.ppk file name and they load that ppk file in putty
          and login.


        Hope this helps.






        share|improve this answer













        You need to convert the provided PEM file to PPK file using Puttygen tool in Windows.




        • Open puttygen and click on import key option in the menu.

        • Once it is imported you will see the button which says "Save Private
          Key".

        • Save it as a xyz.ppk file name and they load that ppk file in putty
          and login.


        Hope this helps.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 18 '15 at 8:46









        serverliving.comserverliving.com

        662313




        662313






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f692679%2fto-generate-key-for-aws-server-using-ssh-keygen-from-pem-for-putty%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Фонтен-ла-Гаярд Зміст Демографія | Економіка | Посилання |...

            Список ссавців Італії Природоохоронні статуси | Список |...

            Маріан Котлеба Зміст Життєпис | Політичні погляди |...