Passwordless SSH On NFS Home Dirs
(2017-04-28)
Problem
Can't use passwordless ssh to a target system.
Solution
In this particular case, I have:
- a home directory on nfs
- selinux enabled
In this combination, the sshd process can't read the private key in the user's home directory.
There are a couple options here:
- turn off selinux; or
# setsebool -P use_nfs_home_dirs 1
Although the first option makes lots of things easier in the short run, in the long run I think we need to get to grips with selinux (or be prepared for it to be replaced by something else (that systemd will undoubtedly do)) even though there are serious problems with selinux as it stands today.
(Source)