SRCF / projects

A collection of projects that the SRCF is looking for help with
0 stars 0 forks source link

Use rsync to sync ssh keys #13

Open dalcde opened 3 years ago

dalcde commented 3 years ago

Problem to be solved

This is a proposed solution to #4.

Solution details

We set up a directory on pip that contains all sysadmin keys

/etc/adm-keys
 |- dec41-authorized_keys
 |- eb677-authorized_keys
 |- ...

In each sysadmin's home directory on pip, set ~/.ssh/authorized_keys to be a symlink to /etc/adm-keys/$USER-authorized_keys. Then any key added to pip will automatically appear in this directory

We then set up an rsync daemon to publicize the contents in this directory. Other servers download the list, create and delete user accounts as appropriate, and then symlink the authorized_keys.

Pros and cons

Pros

Unsolved questions

How to protect the authorized_keys directory from MITM attacks?