Article 5GGF7 [SOLVED] sshd/pam - how to disable password authentication?

[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?latest?d=yIl2AUoC8zA latest?i=OkAWhYk9w6s:Dw0RnodK-jo:F7zBnMy latest?i=OkAWhYk9w6s:Dw0RnodK-jo:V_sGLiP latest?d=qj6IDK7rITs latest?i=OkAWhYk9w6s:Dw0RnodK-jo:gIN9vFwOkAWhYk9w6s
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments