I've generated a public key: 2976 bits …?











up vote
1
down vote

favorite
1












I have generated a public key via ssh-keygen -f foo. The key inside the file foo.pub is AAAAB3NzaC1yc2EAAAADAQABAAABAQDaJ1UGxfjTCzuVNvgjOyK/NF5KFDO2qUREGd9PBB+zJotS85XO9hQjq5XhdekXHfhCM/h3AeGW/xH+XfQIaNd6Lygkts3xls7FCqMVH4PxDpLTSQbbZCV+peMV6xNVv468SD07TGIp9RC0FFuR79tnz28X9RzKCUGrzpu38pAyPs4X3BGgMsc6IcPIfPnEZ61RMWiiouyShKuhD/G68DeTdokmmK0EnO2qMXgu7xsAw+2gSpotIgAPulAPpQr5+Cgit94GpN2Vy9OvhEGT3oqHsR8P4zoJ3rWppiCUDRvFZS/fQsRoNj59LRcPRVE0V8wLnpoEZOu85wBMiIfiac3F. That is 372 characters. 1 character is 8 bits, thus my key is a 372 * 8 = 2976 bit key. That cannot be true because man ssh-keygen says that the default is 2048 bits. Where am I wrong?










share|improve this question


























    up vote
    1
    down vote

    favorite
    1












    I have generated a public key via ssh-keygen -f foo. The key inside the file foo.pub is AAAAB3NzaC1yc2EAAAADAQABAAABAQDaJ1UGxfjTCzuVNvgjOyK/NF5KFDO2qUREGd9PBB+zJotS85XO9hQjq5XhdekXHfhCM/h3AeGW/xH+XfQIaNd6Lygkts3xls7FCqMVH4PxDpLTSQbbZCV+peMV6xNVv468SD07TGIp9RC0FFuR79tnz28X9RzKCUGrzpu38pAyPs4X3BGgMsc6IcPIfPnEZ61RMWiiouyShKuhD/G68DeTdokmmK0EnO2qMXgu7xsAw+2gSpotIgAPulAPpQr5+Cgit94GpN2Vy9OvhEGT3oqHsR8P4zoJ3rWppiCUDRvFZS/fQsRoNj59LRcPRVE0V8wLnpoEZOu85wBMiIfiac3F. That is 372 characters. 1 character is 8 bits, thus my key is a 372 * 8 = 2976 bit key. That cannot be true because man ssh-keygen says that the default is 2048 bits. Where am I wrong?










    share|improve this question
























      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      I have generated a public key via ssh-keygen -f foo. The key inside the file foo.pub is AAAAB3NzaC1yc2EAAAADAQABAAABAQDaJ1UGxfjTCzuVNvgjOyK/NF5KFDO2qUREGd9PBB+zJotS85XO9hQjq5XhdekXHfhCM/h3AeGW/xH+XfQIaNd6Lygkts3xls7FCqMVH4PxDpLTSQbbZCV+peMV6xNVv468SD07TGIp9RC0FFuR79tnz28X9RzKCUGrzpu38pAyPs4X3BGgMsc6IcPIfPnEZ61RMWiiouyShKuhD/G68DeTdokmmK0EnO2qMXgu7xsAw+2gSpotIgAPulAPpQr5+Cgit94GpN2Vy9OvhEGT3oqHsR8P4zoJ3rWppiCUDRvFZS/fQsRoNj59LRcPRVE0V8wLnpoEZOu85wBMiIfiac3F. That is 372 characters. 1 character is 8 bits, thus my key is a 372 * 8 = 2976 bit key. That cannot be true because man ssh-keygen says that the default is 2048 bits. Where am I wrong?










      share|improve this question













      I have generated a public key via ssh-keygen -f foo. The key inside the file foo.pub is AAAAB3NzaC1yc2EAAAADAQABAAABAQDaJ1UGxfjTCzuVNvgjOyK/NF5KFDO2qUREGd9PBB+zJotS85XO9hQjq5XhdekXHfhCM/h3AeGW/xH+XfQIaNd6Lygkts3xls7FCqMVH4PxDpLTSQbbZCV+peMV6xNVv468SD07TGIp9RC0FFuR79tnz28X9RzKCUGrzpu38pAyPs4X3BGgMsc6IcPIfPnEZ61RMWiiouyShKuhD/G68DeTdokmmK0EnO2qMXgu7xsAw+2gSpotIgAPulAPpQr5+Cgit94GpN2Vy9OvhEGT3oqHsR8P4zoJ3rWppiCUDRvFZS/fQsRoNj59LRcPRVE0V8wLnpoEZOu85wBMiIfiac3F. That is 372 characters. 1 character is 8 bits, thus my key is a 372 * 8 = 2976 bit key. That cannot be true because man ssh-keygen says that the default is 2048 bits. Where am I wrong?







      ssh ssh-keys public-key






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 30 at 15:54









      Robert

      111




      111






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          The .pub file contains a base64 encoded version of your key as well as some additional information, which leads to seemingly more than 2048 bits, due to the encoding overhead.






          share|improve this answer





















          • oh okay I understand, it makes sense. If I had a sequence of 1's and 0's there could be an 8-bit sequence which doesn't refer to a readable ascii char, right? But since the key is supposed to be printed into a file there must be some sort of conversion which is "base64". I'll read more about it, thanks already for pointing me in the right direction!
            – Robert
            Nov 30 at 16:20











          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',
          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%2f1379777%2five-generated-a-public-key-2976-bits%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








          up vote
          2
          down vote













          The .pub file contains a base64 encoded version of your key as well as some additional information, which leads to seemingly more than 2048 bits, due to the encoding overhead.






          share|improve this answer





















          • oh okay I understand, it makes sense. If I had a sequence of 1's and 0's there could be an 8-bit sequence which doesn't refer to a readable ascii char, right? But since the key is supposed to be printed into a file there must be some sort of conversion which is "base64". I'll read more about it, thanks already for pointing me in the right direction!
            – Robert
            Nov 30 at 16:20















          up vote
          2
          down vote













          The .pub file contains a base64 encoded version of your key as well as some additional information, which leads to seemingly more than 2048 bits, due to the encoding overhead.






          share|improve this answer





















          • oh okay I understand, it makes sense. If I had a sequence of 1's and 0's there could be an 8-bit sequence which doesn't refer to a readable ascii char, right? But since the key is supposed to be printed into a file there must be some sort of conversion which is "base64". I'll read more about it, thanks already for pointing me in the right direction!
            – Robert
            Nov 30 at 16:20













          up vote
          2
          down vote










          up vote
          2
          down vote









          The .pub file contains a base64 encoded version of your key as well as some additional information, which leads to seemingly more than 2048 bits, due to the encoding overhead.






          share|improve this answer












          The .pub file contains a base64 encoded version of your key as well as some additional information, which leads to seemingly more than 2048 bits, due to the encoding overhead.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 30 at 16:10









          DerFlob

          214




          214












          • oh okay I understand, it makes sense. If I had a sequence of 1's and 0's there could be an 8-bit sequence which doesn't refer to a readable ascii char, right? But since the key is supposed to be printed into a file there must be some sort of conversion which is "base64". I'll read more about it, thanks already for pointing me in the right direction!
            – Robert
            Nov 30 at 16:20


















          • oh okay I understand, it makes sense. If I had a sequence of 1's and 0's there could be an 8-bit sequence which doesn't refer to a readable ascii char, right? But since the key is supposed to be printed into a file there must be some sort of conversion which is "base64". I'll read more about it, thanks already for pointing me in the right direction!
            – Robert
            Nov 30 at 16:20
















          oh okay I understand, it makes sense. If I had a sequence of 1's and 0's there could be an 8-bit sequence which doesn't refer to a readable ascii char, right? But since the key is supposed to be printed into a file there must be some sort of conversion which is "base64". I'll read more about it, thanks already for pointing me in the right direction!
          – Robert
          Nov 30 at 16:20




          oh okay I understand, it makes sense. If I had a sequence of 1's and 0's there could be an 8-bit sequence which doesn't refer to a readable ascii char, right? But since the key is supposed to be printed into a file there must be some sort of conversion which is "base64". I'll read more about it, thanks already for pointing me in the right direction!
          – Robert
          Nov 30 at 16:20


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f1379777%2five-generated-a-public-key-2976-bits%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