Operating System - HP-UX
1833837 Members
2382 Online
110063 Solutions
New Discussion

Re: ssh and NIS authentication HP-UX 11

 
Sabrina Lautier
Advisor

ssh and NIS authentication HP-UX 11

Hi,

I'm having troubles trying to open a ssh connection with a user in the NIS.
If the user is local (/etc/passwd) it works fine but if it's only in the NIS it doesn't work.

~> ssh toto@server1
toto@server1's password:
Permission denied, please try again.
toto@server1's password:
Permission denied, please try again.
toto@server1's password:
Unable to find an authentication method

I compiled openssh-3.9p1 with option --with-pam .
But do I need to modify file /etc/pam.conf ?
Openssh documentation says: "On HP-UX 11 and Solaris, the standard /etc/pam.conf configuration will work with sshd (sshd will match the other service name)."
So I shouldn't have to update it !

I've been searching a lot but haven't found the solution...

Any help will be greatly appreciated.
Rgds,
Sabrina
4 REPLIES 4
RAC_1
Honored Contributor

Re: ssh and NIS authentication HP-UX 11

Did you set the PAM to yes in sshd_config (on server1)

Also we would need more data to resolve this.

On server1
sshd -ddd -p "some_free_port" (nay be 1920)
From lient machine
ssh -vvv toto@server1 -p 1920

Post the outputs.

Anil
There is no substitute to HARDWORK
Michael Selvesteen_2
Trusted Contributor

Re: ssh and NIS authentication HP-UX 11

From your server password prompts, it seems PAM is not enabled in the server. Try setting "UsePAM yes" in sshd_config file and restart the server.

Also try, Edit /etc/pam.conf and add an entry for sshd too,
eg :
sshd account required /usr/lib/security/libpam_unix.1

For PAM & SSH reference you can refer HP Secure Shell release notes.

Hope this helps.
Sabrina Lautier
Advisor

Re: ssh and NIS authentication HP-UX 11

You gave me the solution which was to set option "UsePAM yes" in file sshd_config.
Thanks a lot all for your help.
Rgds,
Sabrina
Sabrina Lautier
Advisor

Re: ssh and NIS authentication HP-UX 11

You gave me the solution which was to set option "UsePAM yes" in file sshd_config.
Thanks a lot all for your help.
Rgds,
Sabrina