SHH connection only via keys

  • Hi everyone,
    I’ve set up SSH key authentication on my LibreELEC 12 (RPi5) using /storage/.ssh/authorized_keys. It works, but even after adding my key, the system still allows login with the default password as a fallback.

    I cant find any ssh config file to disable the pw login.

    Is there a way to completely disable password authentication so that only key-based login is possible?

    Thanks for any guidance!

  • You can enable "disable password authentication" in the SSH service settings (in LE settings). Once this has been set there will still be a login prompt, so you can attempt password auth, but no password is accepted.