July 2, 20242 yr How can I disable password authentication for SSH? I can't get anything I've found to work. Putting ssh_config into /boot/config/ssh and modifying it to have "PasswordAuthentication no" uncommented has not worked. Good day to all and thanks for the help. Edited July 2, 20242 yr by cmr-raid
July 2, 20242 yr Author Thank you. After taking a closer look I've done everything in ssh_config instead of sshd_config For anyone stumbling over this thread, I uncommented these following lines PasswordAuthentication no PermitEmptyPasswords no KbdInteractiveAuthentication no They're close together in the sshd_config template file you find in /etc/ssh. Copy them to /boot/config/ssh and make your edits there to have them persist across reboots.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.