ssh via public key authentication for users administered with NIS
I'm experimenting with using NIS for centralizing the user management for a network of approx 20 servers.
I've got an NIS client and server working, and can ssh to the client machine and successfully log in, but only using a password. I'd like to be able to use public key authentication - how might I do this?
Sorry, AFAIK you can't distribute ssh keys over NIS - they live in ~/.ssh/authorized_keys. So NFS-mounted homedirs would do it. Or you could set up replication (presumably of just .ssh directories or others you choose) using something like unison.
You can do it by mounting /home
via NFS and setsebool use_nfs_home_dirs 1