Operating System - HP-UX
1834208 Members
2312 Online
110066 Solutions
New Discussion

problems with PasswordAuthDenyUsers in sshd

 
SOLVED
Go to solution
Adam Scheblein
Advisor

problems with PasswordAuthDenyUsers in sshd

Greetings,

Currently i am trying to restrict some of our users to public key only however when i put someone in the list for PasswordAuthDenyUsers ex:

PasswordAuthDenyUsers adam

I am still able to login using my password after a restart of ssh.

any help is appreciated.

thanks,
Adam
4 REPLIES 4
Peter Godron
Honored Contributor

Re: problems with PasswordAuthDenyUsers in sshd

Adam,
shouldn't that be the PubKeyAuthAllowUsers directive ?

See:
http://docs.hp.com/en/T1471-90019/ch01s02.html
Adam Scheblein
Advisor

Re: problems with PasswordAuthDenyUsers in sshd

From what i have read, the PubKeyAuthAllowUsers unless specified otherwise is * (all users). All i am trying to do is disable password login for a couple users.
Santhi
New Member
Solution

Re: problems with PasswordAuthDenyUsers in sshd

Hi Adam,

In HP-UX SSH, PAM is enabled by default. Since ur are logged in using ur password after setting the PasswordAuthDenyUsers adam. To deny pam password also,
run the server without PAM.

/opt/ssh/sbin/sshd -o "UsePAM no" -o "PasswordAuthDenyUsers adam"

Otherwise set the following directive in sshd_config file or commandline as follows:

/opt/ssh/sbin/sshd -o "PasswordAuthDenyUsers adam" -o " ChallRespAuthDenyUsers [pam] adam"

These methods can deny the password authentication for a specific user.

Thanks,
Santhi.
Adam Scheblein
Advisor

Re: problems with PasswordAuthDenyUsers in sshd

thanks for all the help!! the last suggestion worked -- i didn't realize that pam was enabled on HP-UX by default :)