Link to home
Start Free TrialLog in
Avatar of Balbir Singh
Balbir SinghFlag for United States of America

asked on

How to ssh PAM authentication with any login info?

I am trying to configure that using ssh any use should be able to login to my server, with or without password ( preferable ). I played with nullok which doesn't require a user to enter the password but I have to create a user and let that user have 'empty password' I am wonder if there is any other way so that any with with empty password should be allowed to login.
Avatar of serialband
serialband
Flag of Ukraine image

Never use empty passwords.  You should use ssh keys.
Avatar of skullnobrains
skullnobrains

the pam_permit modules allow to let anyone access w/o passwords

that said, i see no reason why anybody in his right mind would want to do that
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
... and note that using ssh keys does not require messy and otherwise dangerous pam configurations
As skullnobrains suggested, messing around with PAM can cause large time drains + open security holes.

Generally I just prefer disabling PAM + sticking with SSH keys.