This question is similar to: [1] Why does my SSH private key still work after changing some bytes in the file?

But in this case (on Windows) after editing the authorized_keys file and changing some characters in a public key the login still works ?

Is the same reason of [1] ?
Some characters in the public key are irrelevant ?

In this case the correct key is:
ssh-rsa AAAAB3NzaC1....
IF i change it to (replace C1 with C9):
ssh-rsa AAAAB3NzaC9...

The login works, if i change AAAA then it does not work any more.

  • $\begingroup$ It'll be essentially the same answer. Not all of the encoded information is needed for the login to work. They have purposes, but not for every use. $\endgroup$ Mar 5, 2021 at 22:17
  • $\begingroup$ Similar to this Can an altered RSA private key still work as the original? $\endgroup$
    – kelalaka
    Mar 5, 2021 at 22:45
  • $\begingroup$ Much closer to (cross) serverfault.com/questions/526399/… . The 5th through 11th bytes in the binary blob, corresponding to part of 6th, all of 7th through 14th, and part of 15th characters in the base64, are a redundant copy of the format (previously algorithm) name and are ignored. And not really about cryptography at all. $\endgroup$ Mar 6, 2021 at 6:51


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.