Jump to content

How to disable password authentication for SSH?


Recommended Posts

Posted (edited)

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 by cmr-raid
Link to comment

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.

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...