[SOLVED] sshd/pam - how to disable password authentication?
by redneonglow from LinuxQuestions.org on (#5GGF7)
Hi,
I have a Slackware -current VPS, updated weekly. I just discovered by accident that the /etc/ssh/sshd_config setting "PasswordAuthentication no" setting is being ignored. According to a Web search, this seems to have something to do with the "UsePAM" setting, but I find mixed answers on whether or not setting "UsePAM no" is dangerous. Other results suggest making changes to /etc/pam.d/sshd, which on Slackware doesn't include any comments on what needs to be added/disabled to switch to public key authentication and disable password authentication. Does anyone know what file I need to change, and what change to make, to disable password authentication and only use public key authentication?


I have a Slackware -current VPS, updated weekly. I just discovered by accident that the /etc/ssh/sshd_config setting "PasswordAuthentication no" setting is being ignored. According to a Web search, this seems to have something to do with the "UsePAM" setting, but I find mixed answers on whether or not setting "UsePAM no" is dangerous. Other results suggest making changes to /etc/pam.d/sshd, which on Slackware doesn't include any comments on what needs to be added/disabled to switch to public key authentication and disable password authentication. Does anyone know what file I need to change, and what change to make, to disable password authentication and only use public key authentication?