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?

  • wmassingham@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    9 months ago

    Right. Use some kind of centralized authentication like freeipa.

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

    • PHLAK@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      arrow-down
      1
      ·
      9 months ago

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

      • Muddybulldog@mylemmy.win
        link
        fedilink
        English
        arrow-up
        4
        ·
        9 months 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.

      • dm_me_your_feet@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        9 months ago

        I d rather have 2 to 3 (for critical, mid, and test systems) ssh keys that are regularly rotated than 1 key per machine. I m not gonna balance 50 ssh keys; neither enter my password every time i jump hosts.