Newer
Older
Import / code / Scripts / idea.txt
@John John on 29 Dec 2020 734 bytes bulk import from macbookpro checkouts

Sync of important configuration files
-------------------------------------

Common to machines in a group is following:


  /etc/hosts  or   /Windows/System32/drivers/etc/hosts
     Contains list of IP to local name of machines in local network.
     Not the whole file can be synced, just some part of it.

  ~/.ssh/authorized_keys
     Contains the id_rsa.pub public key of the machines in the group to allow password
     less ssh login. Whole file can be synced.

  ~/.ssh/known_hosts
     Contains recognized machines - not so important to sync

  ...


Perhaps some kind of login script or cronjob can keep these up-to-date. Perhaps via git?
Presuposes the machines can access git and know the ip/hostname of the git server.