nis+ & ssh

secroft at secroft at
Mon Apr 11 18:21:44 GMT 2005

First, take out the [NOTFOUND=return] in your nsswitch.conf file. Then compare your /etc/pam.d/login and system-auth files to below and try it after that.



auth       required     /lib/security/
auth       required     /lib/security/ nullok set_secrpc
auth       required     /lib/security/
account    required     /lib/security/
session    required     /lib/security/
password    required    /lib/security/


auth        required      /lib/security/
auth        sufficient    /lib/security/ likeauth nullok md5 shadow
auth        sufficient    /lib/security/ set_secrpc
auth        required      /lib/security/
account     sufficient      /lib/security/
account     sufficient      /lib/security/ set_secrpc
password    required      /lib/security/ retry=3
password    sufficient    /lib/security/ nullok use_authtok
password    sufficient    /lib/security/ set_secrpc
password    required      /lib/security/
session     required      /lib/security/
session     required      /lib/security/

-----Original Message-----
From: at [ at] On Behalf Of dave t
Sent: Monday, April 11, 2005 12:04 PM
To: linux-nisplus at
Subject: nis+ & ssh

I am not able to ssh  into a RedHat box and authenticate via nis+. However, 
I'm able to telnet into the box and authenticate through nis+. Any ideas on 
how to configure sshd to authenticate via nis+.

My nsswitch.conf :

passwd:     files nisplus
shadow:     files nisplus
group:      files nisplus
hosts:      files nisplus dns
services:   nisplus [NOTFOUND=return] files
networks:   nisplus [NOTFOUND=return] files
protocols:  nisplus [NOTFOUND=return] files
rpc:        nisplus [NOTFOUND=return] files
ethers:     nisplus [NOTFOUND=return] files
netmasks:   nisplus [NOTFOUND=return] files
bootparams: nisplus [NOTFOUND=return] files
netgroup:  nisplus
publickey:  nisplus
automount:  files nisplus
aliases:    files nisplus

my /etc/pam.d/login:
auth       required
auth       required service=system-auth
auth       required
account    required service=system-auth
password   required service=system-auth
session    required service=system-auth
session    optional

my /etc/ssh/sshd_config:
SyslogFacility AUTHPRIV
X11Forwarding yes
Subsystem       sftp    /usr/libexec/openssh/sftp-server

uname -a:
Linux linuxbox 2.4.21-27.0.2.ELsmp

More information about the linux-nisplus mailing list