How do you guys quickly sync your settings (especially bash aliases and ssh keys) across your machines?

Ideally i want a simple script to run on every new server I work with. Any suggestions?

  • Baron Von J
    link
    fedilink
    352 years ago

    I suggest you don’t sync SSH keys. That’s just increasing the blast radius of any one of those machines being compromised.

    • @RegalPotoo@lemmy.world
      link
      fedilink
      English
      62 years ago

      Exactly this. Don’t move private keys between machines. Generate them where you need them, it’s not like they cost anything

    • @wmassingham@lemmy.world
      link
      fedilink
      32 years ago

      Right. Use some kind of centralized authentication like freeipa.

      For bash aliases, I just pull down a .bashrc from github gists.

      • PHLAK
        link
        fedilink
        English
        72 years ago

        OP should just generate a unique SSH key per device (+ user).

        • Muddybulldog
          link
          fedilink
          English
          42 years ago

          Agreed. I’ve probably got 100 keys registered with GitHub and 98 of them the private key is long destroyed due to OS reinstalls or whatnot. Format machine, new key. New machine, new key.

          • PHLAK
            link
            fedilink
            English
            12 years ago

            FYI: You can remove the old keys from GitHub.

      • mFatOP
        link
        fedilink
        English
        12 years ago

        Is the url is easy to rember?