I am trying to configure my sshd on ubuntu 18.04 to accept only ed25519 keys to authenticate, at the moment the server accepts ssh-rsa and ssh-ed25519. Any idea to achieve that? thanks!


1 Answer 1


man sshd_config and man ssh_config , is mandatory to read .

PubkeyAcceptedKeyTypes is what you want to use .

  • 1
    PubkeyAcceptedKeyTypes ssh-ed25519-cert-v01@openssh.com,ssh-ed25519 worked for me, thanks!
    – vmpr
    Nov 1, 2019 at 4:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.