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, 87 days ago. Viewed 129 times. #1
[edit] [rdf]
labels
attachments
(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)

no comments | post comment

Virtual Dave Megaplex:

Internet Explorer 6 Users >>Click Here

(read this note about local search)

Logged in Users: (0)
… and 18 Guests.


Editing: snipsnap-help, Image Macro

(Et auditum est, et idcirco ego nunc simulare)

Installed 6 years and 193 days ago
Powered By >>SnipSnap Version 1.0b1-uttoxeter

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:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt