For When You Can't Have The Real Thing
[ start | index | login ]
start > CentOS > 7 > Passwordless SSH On NFS Home Dirs

Passwordless SSH On NFS Home Dirs

Created by dave. Last edited by dave, 6 years and 304 days ago. Viewed 2,145 times. #1
[edit] [rdf]


Can't use passwordless ssh to a target system.


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.


no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt