How to convert .ppk key to OpenSSH key under Linux?





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







172















I know that is possible to convert .ppk under puttygen in Windows, but how to do that on Linux? Is this possible ?










share|improve this question































    172















    I know that is possible to convert .ppk under puttygen in Windows, but how to do that on Linux? Is this possible ?










    share|improve this question



























      172












      172








      172


      75






      I know that is possible to convert .ppk under puttygen in Windows, but how to do that on Linux? Is this possible ?










      share|improve this question
















      I know that is possible to convert .ppk under puttygen in Windows, but how to do that on Linux? Is this possible ?







      linux ssh putty ssh-keys






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 1 '14 at 13:41









      slhck

      163k47451476




      163k47451476










      asked Jan 12 '11 at 17:56









      mariooshmarioosh

      1,40151728




      1,40151728






















          4 Answers
          4






          active

          oldest

          votes


















          254














          Do it with Putty.





          • Linux: with your package manager, install PuTTY (or the more minimal PuTTY-tools):




            • Ubuntu sudo apt-get install putty-tools

            • Debian-like apt-get install putty-tools

            • RPM based yum install putty

            • Gentoo emerge putty

            • Archlinux sudo pacman -S putty

            • etc.



          • OS X: Install Homebrew, then run brew install putty



          Place your keys in some directory, e.g. your home folder.
          Now convert the PPK keys to SSH keypairs:cache search



          To generate the private key:



          cd ~
          puttygen id_dsa.ppk -O private-openssh -o id_dsa


          and to generate the public key:



          puttygen id_dsa.ppk -O public-openssh -o id_dsa.pub


          Move these keys to ~/.ssh and make sure the permissions are set to private for your private key:



          mkdir -p ~/.ssh
          mv -i ~/id_dsa* ~/.ssh
          chmod 600 ~/.ssh/id_dsa
          chmod 666 ~/.ssh/id_dsa.pub


          If you have already tried to perform a 'git clone' operation you might need to do this also



          chmod 666 ~/.ssh/known_hosts





          share|improve this answer


























          • hi i already have a .pub then it is need to create public key again

            – Amit Bera
            Aug 20 '14 at 12:19








          • 1





            If you came here looking for how to do it in windows, run "puttygen yourkey.ppk", and then under the Conversions menu choose "Export OpenSSH key" to get the private key.

            – Ryan Shillington
            Sep 22 '14 at 16:46






          • 1





            the solution from @jous is much nicer since you don't need the private key to convert a public key + you don't need to install putty

            – Tobi
            Aug 19 '15 at 12:55











          • I had to add this key to my ./ssh/config file Host mysite.com Hostname mysite.com IdentityFile ~/.ssh/id_dsa IdentitiesOnly yes

            – vladkras
            Jan 12 '16 at 16:33













          • Some elliptic curve formats (ECDS etc) are only available in the beta putty tools yet.

            – DanFromGermany
            Mar 23 '16 at 10:27



















          36














          ssh-keygen -i -f id_dsa_1024_a.pub > id_dsa_1024_a_openssh.pub




          • -i flag is import from other than openssh format


          • -f flag means read from input file


          Source: a blogpost at burnz.wordpress.com






          share|improve this answer





















          • 17





            .ppk files are the full key pairs, I don't think the command above or the blog post apply to that.

            – Peter Becker
            Feb 7 '13 at 0:27






          • 2





            I think I meant that it works if you use puttygen's "Save public key" button. ssh-keygen do not understand true .ppk files because they lack those '---- BEGIN SSH2 PUBLIC KEY ----' markers. You can find the public key in the .ppk file between lines "Public-Lines:.." and "Private-Lines:.." though.

            – jous
            Jan 7 '14 at 14:35






          • 1





            This worked for me with a public-key file - puttygen seems to require a private key. it's seems that all it did was rearrange the base-64 part into a single line

            – Jasen
            Mar 12 '15 at 3:10








          • 2





            This does not seem to cover private keys, which is why I would want to do the conversion, I already have a public key saved somewhere...

            – Gert van den Berg
            Feb 6 '16 at 9:47



















          5














          Get the private key:



          open the .ppk file in puttygen:



          puttygen ~/.ssh/id_dsa.ppk


          export as openssh:



          Conversions → Export OpenSSH key



          Get the public key:



          open like before the private key with puttygen, the public key is under
          public key for pasting into OpenSSH authorized_keys file






          share|improve this answer































            4














            I prepared a Docker container to make life simpler:



            docker run --rm 
            --volume=/path/to/file.ppk:/tmp/id_dsa.ppk
            --volume=/path/to/output:/tmp/out/
            czerasz/putty-tools


            Where:





            • /path/to/file.ppk - local path to your ppk file


            • /path/to/output - local path to where the private and public key should be placed






            share|improve this answer



















            • 1





              great. thx for the image! however meanwhile its --volume=/path/to/file.ppk:/tmp/id.ppk and not id_dsa.ppk

              – pHiL
              Oct 4 '16 at 16:38












            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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%2fsuperuser.com%2fquestions%2f232362%2fhow-to-convert-ppk-key-to-openssh-key-under-linux%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            4 Answers
            4






            active

            oldest

            votes








            4 Answers
            4






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            254














            Do it with Putty.





            • Linux: with your package manager, install PuTTY (or the more minimal PuTTY-tools):




              • Ubuntu sudo apt-get install putty-tools

              • Debian-like apt-get install putty-tools

              • RPM based yum install putty

              • Gentoo emerge putty

              • Archlinux sudo pacman -S putty

              • etc.



            • OS X: Install Homebrew, then run brew install putty



            Place your keys in some directory, e.g. your home folder.
            Now convert the PPK keys to SSH keypairs:cache search



            To generate the private key:



            cd ~
            puttygen id_dsa.ppk -O private-openssh -o id_dsa


            and to generate the public key:



            puttygen id_dsa.ppk -O public-openssh -o id_dsa.pub


            Move these keys to ~/.ssh and make sure the permissions are set to private for your private key:



            mkdir -p ~/.ssh
            mv -i ~/id_dsa* ~/.ssh
            chmod 600 ~/.ssh/id_dsa
            chmod 666 ~/.ssh/id_dsa.pub


            If you have already tried to perform a 'git clone' operation you might need to do this also



            chmod 666 ~/.ssh/known_hosts





            share|improve this answer


























            • hi i already have a .pub then it is need to create public key again

              – Amit Bera
              Aug 20 '14 at 12:19








            • 1





              If you came here looking for how to do it in windows, run "puttygen yourkey.ppk", and then under the Conversions menu choose "Export OpenSSH key" to get the private key.

              – Ryan Shillington
              Sep 22 '14 at 16:46






            • 1





              the solution from @jous is much nicer since you don't need the private key to convert a public key + you don't need to install putty

              – Tobi
              Aug 19 '15 at 12:55











            • I had to add this key to my ./ssh/config file Host mysite.com Hostname mysite.com IdentityFile ~/.ssh/id_dsa IdentitiesOnly yes

              – vladkras
              Jan 12 '16 at 16:33













            • Some elliptic curve formats (ECDS etc) are only available in the beta putty tools yet.

              – DanFromGermany
              Mar 23 '16 at 10:27
















            254














            Do it with Putty.





            • Linux: with your package manager, install PuTTY (or the more minimal PuTTY-tools):




              • Ubuntu sudo apt-get install putty-tools

              • Debian-like apt-get install putty-tools

              • RPM based yum install putty

              • Gentoo emerge putty

              • Archlinux sudo pacman -S putty

              • etc.



            • OS X: Install Homebrew, then run brew install putty



            Place your keys in some directory, e.g. your home folder.
            Now convert the PPK keys to SSH keypairs:cache search



            To generate the private key:



            cd ~
            puttygen id_dsa.ppk -O private-openssh -o id_dsa


            and to generate the public key:



            puttygen id_dsa.ppk -O public-openssh -o id_dsa.pub


            Move these keys to ~/.ssh and make sure the permissions are set to private for your private key:



            mkdir -p ~/.ssh
            mv -i ~/id_dsa* ~/.ssh
            chmod 600 ~/.ssh/id_dsa
            chmod 666 ~/.ssh/id_dsa.pub


            If you have already tried to perform a 'git clone' operation you might need to do this also



            chmod 666 ~/.ssh/known_hosts





            share|improve this answer


























            • hi i already have a .pub then it is need to create public key again

              – Amit Bera
              Aug 20 '14 at 12:19








            • 1





              If you came here looking for how to do it in windows, run "puttygen yourkey.ppk", and then under the Conversions menu choose "Export OpenSSH key" to get the private key.

              – Ryan Shillington
              Sep 22 '14 at 16:46






            • 1





              the solution from @jous is much nicer since you don't need the private key to convert a public key + you don't need to install putty

              – Tobi
              Aug 19 '15 at 12:55











            • I had to add this key to my ./ssh/config file Host mysite.com Hostname mysite.com IdentityFile ~/.ssh/id_dsa IdentitiesOnly yes

              – vladkras
              Jan 12 '16 at 16:33













            • Some elliptic curve formats (ECDS etc) are only available in the beta putty tools yet.

              – DanFromGermany
              Mar 23 '16 at 10:27














            254












            254








            254







            Do it with Putty.





            • Linux: with your package manager, install PuTTY (or the more minimal PuTTY-tools):




              • Ubuntu sudo apt-get install putty-tools

              • Debian-like apt-get install putty-tools

              • RPM based yum install putty

              • Gentoo emerge putty

              • Archlinux sudo pacman -S putty

              • etc.



            • OS X: Install Homebrew, then run brew install putty



            Place your keys in some directory, e.g. your home folder.
            Now convert the PPK keys to SSH keypairs:cache search



            To generate the private key:



            cd ~
            puttygen id_dsa.ppk -O private-openssh -o id_dsa


            and to generate the public key:



            puttygen id_dsa.ppk -O public-openssh -o id_dsa.pub


            Move these keys to ~/.ssh and make sure the permissions are set to private for your private key:



            mkdir -p ~/.ssh
            mv -i ~/id_dsa* ~/.ssh
            chmod 600 ~/.ssh/id_dsa
            chmod 666 ~/.ssh/id_dsa.pub


            If you have already tried to perform a 'git clone' operation you might need to do this also



            chmod 666 ~/.ssh/known_hosts





            share|improve this answer















            Do it with Putty.





            • Linux: with your package manager, install PuTTY (or the more minimal PuTTY-tools):




              • Ubuntu sudo apt-get install putty-tools

              • Debian-like apt-get install putty-tools

              • RPM based yum install putty

              • Gentoo emerge putty

              • Archlinux sudo pacman -S putty

              • etc.



            • OS X: Install Homebrew, then run brew install putty



            Place your keys in some directory, e.g. your home folder.
            Now convert the PPK keys to SSH keypairs:cache search



            To generate the private key:



            cd ~
            puttygen id_dsa.ppk -O private-openssh -o id_dsa


            and to generate the public key:



            puttygen id_dsa.ppk -O public-openssh -o id_dsa.pub


            Move these keys to ~/.ssh and make sure the permissions are set to private for your private key:



            mkdir -p ~/.ssh
            mv -i ~/id_dsa* ~/.ssh
            chmod 600 ~/.ssh/id_dsa
            chmod 666 ~/.ssh/id_dsa.pub


            If you have already tried to perform a 'git clone' operation you might need to do this also



            chmod 666 ~/.ssh/known_hosts






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jun 11 '17 at 22:37









            FSMaxB

            1,323925




            1,323925










            answered Jan 12 '11 at 18:03









            Stanley WilliamsStanley Williams

            3,86411512




            3,86411512













            • hi i already have a .pub then it is need to create public key again

              – Amit Bera
              Aug 20 '14 at 12:19








            • 1





              If you came here looking for how to do it in windows, run "puttygen yourkey.ppk", and then under the Conversions menu choose "Export OpenSSH key" to get the private key.

              – Ryan Shillington
              Sep 22 '14 at 16:46






            • 1





              the solution from @jous is much nicer since you don't need the private key to convert a public key + you don't need to install putty

              – Tobi
              Aug 19 '15 at 12:55











            • I had to add this key to my ./ssh/config file Host mysite.com Hostname mysite.com IdentityFile ~/.ssh/id_dsa IdentitiesOnly yes

              – vladkras
              Jan 12 '16 at 16:33













            • Some elliptic curve formats (ECDS etc) are only available in the beta putty tools yet.

              – DanFromGermany
              Mar 23 '16 at 10:27



















            • hi i already have a .pub then it is need to create public key again

              – Amit Bera
              Aug 20 '14 at 12:19








            • 1





              If you came here looking for how to do it in windows, run "puttygen yourkey.ppk", and then under the Conversions menu choose "Export OpenSSH key" to get the private key.

              – Ryan Shillington
              Sep 22 '14 at 16:46






            • 1





              the solution from @jous is much nicer since you don't need the private key to convert a public key + you don't need to install putty

              – Tobi
              Aug 19 '15 at 12:55











            • I had to add this key to my ./ssh/config file Host mysite.com Hostname mysite.com IdentityFile ~/.ssh/id_dsa IdentitiesOnly yes

              – vladkras
              Jan 12 '16 at 16:33













            • Some elliptic curve formats (ECDS etc) are only available in the beta putty tools yet.

              – DanFromGermany
              Mar 23 '16 at 10:27

















            hi i already have a .pub then it is need to create public key again

            – Amit Bera
            Aug 20 '14 at 12:19







            hi i already have a .pub then it is need to create public key again

            – Amit Bera
            Aug 20 '14 at 12:19






            1




            1





            If you came here looking for how to do it in windows, run "puttygen yourkey.ppk", and then under the Conversions menu choose "Export OpenSSH key" to get the private key.

            – Ryan Shillington
            Sep 22 '14 at 16:46





            If you came here looking for how to do it in windows, run "puttygen yourkey.ppk", and then under the Conversions menu choose "Export OpenSSH key" to get the private key.

            – Ryan Shillington
            Sep 22 '14 at 16:46




            1




            1





            the solution from @jous is much nicer since you don't need the private key to convert a public key + you don't need to install putty

            – Tobi
            Aug 19 '15 at 12:55





            the solution from @jous is much nicer since you don't need the private key to convert a public key + you don't need to install putty

            – Tobi
            Aug 19 '15 at 12:55













            I had to add this key to my ./ssh/config file Host mysite.com Hostname mysite.com IdentityFile ~/.ssh/id_dsa IdentitiesOnly yes

            – vladkras
            Jan 12 '16 at 16:33







            I had to add this key to my ./ssh/config file Host mysite.com Hostname mysite.com IdentityFile ~/.ssh/id_dsa IdentitiesOnly yes

            – vladkras
            Jan 12 '16 at 16:33















            Some elliptic curve formats (ECDS etc) are only available in the beta putty tools yet.

            – DanFromGermany
            Mar 23 '16 at 10:27





            Some elliptic curve formats (ECDS etc) are only available in the beta putty tools yet.

            – DanFromGermany
            Mar 23 '16 at 10:27













            36














            ssh-keygen -i -f id_dsa_1024_a.pub > id_dsa_1024_a_openssh.pub




            • -i flag is import from other than openssh format


            • -f flag means read from input file


            Source: a blogpost at burnz.wordpress.com






            share|improve this answer





















            • 17





              .ppk files are the full key pairs, I don't think the command above or the blog post apply to that.

              – Peter Becker
              Feb 7 '13 at 0:27






            • 2





              I think I meant that it works if you use puttygen's "Save public key" button. ssh-keygen do not understand true .ppk files because they lack those '---- BEGIN SSH2 PUBLIC KEY ----' markers. You can find the public key in the .ppk file between lines "Public-Lines:.." and "Private-Lines:.." though.

              – jous
              Jan 7 '14 at 14:35






            • 1





              This worked for me with a public-key file - puttygen seems to require a private key. it's seems that all it did was rearrange the base-64 part into a single line

              – Jasen
              Mar 12 '15 at 3:10








            • 2





              This does not seem to cover private keys, which is why I would want to do the conversion, I already have a public key saved somewhere...

              – Gert van den Berg
              Feb 6 '16 at 9:47
















            36














            ssh-keygen -i -f id_dsa_1024_a.pub > id_dsa_1024_a_openssh.pub




            • -i flag is import from other than openssh format


            • -f flag means read from input file


            Source: a blogpost at burnz.wordpress.com






            share|improve this answer





















            • 17





              .ppk files are the full key pairs, I don't think the command above or the blog post apply to that.

              – Peter Becker
              Feb 7 '13 at 0:27






            • 2





              I think I meant that it works if you use puttygen's "Save public key" button. ssh-keygen do not understand true .ppk files because they lack those '---- BEGIN SSH2 PUBLIC KEY ----' markers. You can find the public key in the .ppk file between lines "Public-Lines:.." and "Private-Lines:.." though.

              – jous
              Jan 7 '14 at 14:35






            • 1





              This worked for me with a public-key file - puttygen seems to require a private key. it's seems that all it did was rearrange the base-64 part into a single line

              – Jasen
              Mar 12 '15 at 3:10








            • 2





              This does not seem to cover private keys, which is why I would want to do the conversion, I already have a public key saved somewhere...

              – Gert van den Berg
              Feb 6 '16 at 9:47














            36












            36








            36







            ssh-keygen -i -f id_dsa_1024_a.pub > id_dsa_1024_a_openssh.pub




            • -i flag is import from other than openssh format


            • -f flag means read from input file


            Source: a blogpost at burnz.wordpress.com






            share|improve this answer















            ssh-keygen -i -f id_dsa_1024_a.pub > id_dsa_1024_a_openssh.pub




            • -i flag is import from other than openssh format


            • -f flag means read from input file


            Source: a blogpost at burnz.wordpress.com







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 6 at 16:15









            Sean Bright

            5,05511612




            5,05511612










            answered Mar 6 '12 at 14:53









            jousjous

            50846




            50846








            • 17





              .ppk files are the full key pairs, I don't think the command above or the blog post apply to that.

              – Peter Becker
              Feb 7 '13 at 0:27






            • 2





              I think I meant that it works if you use puttygen's "Save public key" button. ssh-keygen do not understand true .ppk files because they lack those '---- BEGIN SSH2 PUBLIC KEY ----' markers. You can find the public key in the .ppk file between lines "Public-Lines:.." and "Private-Lines:.." though.

              – jous
              Jan 7 '14 at 14:35






            • 1





              This worked for me with a public-key file - puttygen seems to require a private key. it's seems that all it did was rearrange the base-64 part into a single line

              – Jasen
              Mar 12 '15 at 3:10








            • 2





              This does not seem to cover private keys, which is why I would want to do the conversion, I already have a public key saved somewhere...

              – Gert van den Berg
              Feb 6 '16 at 9:47














            • 17





              .ppk files are the full key pairs, I don't think the command above or the blog post apply to that.

              – Peter Becker
              Feb 7 '13 at 0:27






            • 2





              I think I meant that it works if you use puttygen's "Save public key" button. ssh-keygen do not understand true .ppk files because they lack those '---- BEGIN SSH2 PUBLIC KEY ----' markers. You can find the public key in the .ppk file between lines "Public-Lines:.." and "Private-Lines:.." though.

              – jous
              Jan 7 '14 at 14:35






            • 1





              This worked for me with a public-key file - puttygen seems to require a private key. it's seems that all it did was rearrange the base-64 part into a single line

              – Jasen
              Mar 12 '15 at 3:10








            • 2





              This does not seem to cover private keys, which is why I would want to do the conversion, I already have a public key saved somewhere...

              – Gert van den Berg
              Feb 6 '16 at 9:47








            17




            17





            .ppk files are the full key pairs, I don't think the command above or the blog post apply to that.

            – Peter Becker
            Feb 7 '13 at 0:27





            .ppk files are the full key pairs, I don't think the command above or the blog post apply to that.

            – Peter Becker
            Feb 7 '13 at 0:27




            2




            2





            I think I meant that it works if you use puttygen's "Save public key" button. ssh-keygen do not understand true .ppk files because they lack those '---- BEGIN SSH2 PUBLIC KEY ----' markers. You can find the public key in the .ppk file between lines "Public-Lines:.." and "Private-Lines:.." though.

            – jous
            Jan 7 '14 at 14:35





            I think I meant that it works if you use puttygen's "Save public key" button. ssh-keygen do not understand true .ppk files because they lack those '---- BEGIN SSH2 PUBLIC KEY ----' markers. You can find the public key in the .ppk file between lines "Public-Lines:.." and "Private-Lines:.." though.

            – jous
            Jan 7 '14 at 14:35




            1




            1





            This worked for me with a public-key file - puttygen seems to require a private key. it's seems that all it did was rearrange the base-64 part into a single line

            – Jasen
            Mar 12 '15 at 3:10







            This worked for me with a public-key file - puttygen seems to require a private key. it's seems that all it did was rearrange the base-64 part into a single line

            – Jasen
            Mar 12 '15 at 3:10






            2




            2





            This does not seem to cover private keys, which is why I would want to do the conversion, I already have a public key saved somewhere...

            – Gert van den Berg
            Feb 6 '16 at 9:47





            This does not seem to cover private keys, which is why I would want to do the conversion, I already have a public key saved somewhere...

            – Gert van den Berg
            Feb 6 '16 at 9:47











            5














            Get the private key:



            open the .ppk file in puttygen:



            puttygen ~/.ssh/id_dsa.ppk


            export as openssh:



            Conversions → Export OpenSSH key



            Get the public key:



            open like before the private key with puttygen, the public key is under
            public key for pasting into OpenSSH authorized_keys file






            share|improve this answer




























              5














              Get the private key:



              open the .ppk file in puttygen:



              puttygen ~/.ssh/id_dsa.ppk


              export as openssh:



              Conversions → Export OpenSSH key



              Get the public key:



              open like before the private key with puttygen, the public key is under
              public key for pasting into OpenSSH authorized_keys file






              share|improve this answer


























                5












                5








                5







                Get the private key:



                open the .ppk file in puttygen:



                puttygen ~/.ssh/id_dsa.ppk


                export as openssh:



                Conversions → Export OpenSSH key



                Get the public key:



                open like before the private key with puttygen, the public key is under
                public key for pasting into OpenSSH authorized_keys file






                share|improve this answer













                Get the private key:



                open the .ppk file in puttygen:



                puttygen ~/.ssh/id_dsa.ppk


                export as openssh:



                Conversions → Export OpenSSH key



                Get the public key:



                open like before the private key with puttygen, the public key is under
                public key for pasting into OpenSSH authorized_keys file







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 15 '17 at 8:47









                Bar HoringBar Horing

                16113




                16113























                    4














                    I prepared a Docker container to make life simpler:



                    docker run --rm 
                    --volume=/path/to/file.ppk:/tmp/id_dsa.ppk
                    --volume=/path/to/output:/tmp/out/
                    czerasz/putty-tools


                    Where:





                    • /path/to/file.ppk - local path to your ppk file


                    • /path/to/output - local path to where the private and public key should be placed






                    share|improve this answer



















                    • 1





                      great. thx for the image! however meanwhile its --volume=/path/to/file.ppk:/tmp/id.ppk and not id_dsa.ppk

                      – pHiL
                      Oct 4 '16 at 16:38
















                    4














                    I prepared a Docker container to make life simpler:



                    docker run --rm 
                    --volume=/path/to/file.ppk:/tmp/id_dsa.ppk
                    --volume=/path/to/output:/tmp/out/
                    czerasz/putty-tools


                    Where:





                    • /path/to/file.ppk - local path to your ppk file


                    • /path/to/output - local path to where the private and public key should be placed






                    share|improve this answer



















                    • 1





                      great. thx for the image! however meanwhile its --volume=/path/to/file.ppk:/tmp/id.ppk and not id_dsa.ppk

                      – pHiL
                      Oct 4 '16 at 16:38














                    4












                    4








                    4







                    I prepared a Docker container to make life simpler:



                    docker run --rm 
                    --volume=/path/to/file.ppk:/tmp/id_dsa.ppk
                    --volume=/path/to/output:/tmp/out/
                    czerasz/putty-tools


                    Where:





                    • /path/to/file.ppk - local path to your ppk file


                    • /path/to/output - local path to where the private and public key should be placed






                    share|improve this answer













                    I prepared a Docker container to make life simpler:



                    docker run --rm 
                    --volume=/path/to/file.ppk:/tmp/id_dsa.ppk
                    --volume=/path/to/output:/tmp/out/
                    czerasz/putty-tools


                    Where:





                    • /path/to/file.ppk - local path to your ppk file


                    • /path/to/output - local path to where the private and public key should be placed







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 7 '16 at 11:43









                    czeraszczerasz

                    2241310




                    2241310








                    • 1





                      great. thx for the image! however meanwhile its --volume=/path/to/file.ppk:/tmp/id.ppk and not id_dsa.ppk

                      – pHiL
                      Oct 4 '16 at 16:38














                    • 1





                      great. thx for the image! however meanwhile its --volume=/path/to/file.ppk:/tmp/id.ppk and not id_dsa.ppk

                      – pHiL
                      Oct 4 '16 at 16:38








                    1




                    1





                    great. thx for the image! however meanwhile its --volume=/path/to/file.ppk:/tmp/id.ppk and not id_dsa.ppk

                    – pHiL
                    Oct 4 '16 at 16:38





                    great. thx for the image! however meanwhile its --volume=/path/to/file.ppk:/tmp/id.ppk and not id_dsa.ppk

                    – pHiL
                    Oct 4 '16 at 16:38


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f232362%2fhow-to-convert-ppk-key-to-openssh-key-under-linux%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

                    Probability when a professor distributes a quiz and homework assignment to a class of n students.

                    Aardman Animations

                    Are they similar matrix