ssh 3des private key encrypt and decrypt












1















i have converted my ssh private key with 3des encryption



openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_rsa.old -out ~/.ssh/id_rsa 


how do I remove encryption and get the old key?










share|improve this question














bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    1















    i have converted my ssh private key with 3des encryption



    openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_rsa.old -out ~/.ssh/id_rsa 


    how do I remove encryption and get the old key?










    share|improve this question














    bumped to the homepage by Community 4 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      i have converted my ssh private key with 3des encryption



      openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_rsa.old -out ~/.ssh/id_rsa 


      how do I remove encryption and get the old key?










      share|improve this question














      i have converted my ssh private key with 3des encryption



      openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_rsa.old -out ~/.ssh/id_rsa 


      how do I remove encryption and get the old key?







      linux centos ssh






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 22 '15 at 11:47









      krisdigitxkrisdigitx

      1063




      1063





      bumped to the homepage by Community 4 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 4 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          If you haven't deleted the file ~/.ssh/id_rsa.old, that's your old key without passphrase ("unencrypted").



          Otherwise, to remove a passphrase from the keyfile just use the command



          openssl pkey -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_unencrypted



          You will be prompted for the passphrase.



          EDIT: changed filenames to be more clear.






          share|improve this answer


























          • this is not about the passphrase, I need to remove 3DES encryption...

            – krisdigitx
            Apr 22 '15 at 13:30











          • The command you posted encrypted ~/.ssh/id_rsa.old with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.

            – dr01
            Apr 22 '15 at 13:40











          • What is printed out when you type head -n 1 ~/.ssh/id_rsa ?

            – dr01
            Apr 22 '15 at 13:45














          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f197858%2fssh-3des-private-key-encrypt-and-decrypt%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          If you haven't deleted the file ~/.ssh/id_rsa.old, that's your old key without passphrase ("unencrypted").



          Otherwise, to remove a passphrase from the keyfile just use the command



          openssl pkey -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_unencrypted



          You will be prompted for the passphrase.



          EDIT: changed filenames to be more clear.






          share|improve this answer


























          • this is not about the passphrase, I need to remove 3DES encryption...

            – krisdigitx
            Apr 22 '15 at 13:30











          • The command you posted encrypted ~/.ssh/id_rsa.old with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.

            – dr01
            Apr 22 '15 at 13:40











          • What is printed out when you type head -n 1 ~/.ssh/id_rsa ?

            – dr01
            Apr 22 '15 at 13:45


















          0














          If you haven't deleted the file ~/.ssh/id_rsa.old, that's your old key without passphrase ("unencrypted").



          Otherwise, to remove a passphrase from the keyfile just use the command



          openssl pkey -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_unencrypted



          You will be prompted for the passphrase.



          EDIT: changed filenames to be more clear.






          share|improve this answer


























          • this is not about the passphrase, I need to remove 3DES encryption...

            – krisdigitx
            Apr 22 '15 at 13:30











          • The command you posted encrypted ~/.ssh/id_rsa.old with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.

            – dr01
            Apr 22 '15 at 13:40











          • What is printed out when you type head -n 1 ~/.ssh/id_rsa ?

            – dr01
            Apr 22 '15 at 13:45
















          0












          0








          0







          If you haven't deleted the file ~/.ssh/id_rsa.old, that's your old key without passphrase ("unencrypted").



          Otherwise, to remove a passphrase from the keyfile just use the command



          openssl pkey -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_unencrypted



          You will be prompted for the passphrase.



          EDIT: changed filenames to be more clear.






          share|improve this answer















          If you haven't deleted the file ~/.ssh/id_rsa.old, that's your old key without passphrase ("unencrypted").



          Otherwise, to remove a passphrase from the keyfile just use the command



          openssl pkey -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_unencrypted



          You will be prompted for the passphrase.



          EDIT: changed filenames to be more clear.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 22 '15 at 13:42

























          answered Apr 22 '15 at 13:19









          dr01dr01

          16.3k115275




          16.3k115275













          • this is not about the passphrase, I need to remove 3DES encryption...

            – krisdigitx
            Apr 22 '15 at 13:30











          • The command you posted encrypted ~/.ssh/id_rsa.old with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.

            – dr01
            Apr 22 '15 at 13:40











          • What is printed out when you type head -n 1 ~/.ssh/id_rsa ?

            – dr01
            Apr 22 '15 at 13:45





















          • this is not about the passphrase, I need to remove 3DES encryption...

            – krisdigitx
            Apr 22 '15 at 13:30











          • The command you posted encrypted ~/.ssh/id_rsa.old with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.

            – dr01
            Apr 22 '15 at 13:40











          • What is printed out when you type head -n 1 ~/.ssh/id_rsa ?

            – dr01
            Apr 22 '15 at 13:45



















          this is not about the passphrase, I need to remove 3DES encryption...

          – krisdigitx
          Apr 22 '15 at 13:30





          this is not about the passphrase, I need to remove 3DES encryption...

          – krisdigitx
          Apr 22 '15 at 13:30













          The command you posted encrypted ~/.ssh/id_rsa.old with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.

          – dr01
          Apr 22 '15 at 13:40





          The command you posted encrypted ~/.ssh/id_rsa.old with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.

          – dr01
          Apr 22 '15 at 13:40













          What is printed out when you type head -n 1 ~/.ssh/id_rsa ?

          – dr01
          Apr 22 '15 at 13:45







          What is printed out when you type head -n 1 ~/.ssh/id_rsa ?

          – dr01
          Apr 22 '15 at 13:45




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f197858%2fssh-3des-private-key-encrypt-and-decrypt%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

          濃尾地震

          How to rewrite equation of hyperbola in standard form

          No ethernet ip address in my vocore2