So, feel free to correct me if I am wrong but this is my current knowledge about ts:

  1. PGP and SSH both use asymmetric encryption; in other words there is always a public and private key.
  2. You can verify the sender with your public key if the sender signs whatever he sends with his private key.
  3. You tend to insert your public key into remote Git repository like Github etc.

So should your private key not be sufficient to verify your identity when you push commits? Why would you want to use PGP instead?

  • sudneo@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 天前

    Fyi for point 2, you can sign with SSH key stored on a hardware token (e.g., yubikey).