userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms

When login to an Ubuntu 22.04 server using FileZilla SFTP, got login failed error.

On checking /var/log/auth.log, found the following error message.

The error “ssh-rsa not in PubkeyAcceptedAlgorithms” happens when trying to connect to a server which only support more secure algorithm, such as SHA-256 or better.

To fix the error, edit file

At the end of the file, add

Restart sshd

To view currently supported Algorithms, run

key type ssh-rsa not in PubkeyAcceptedAlgorithms

You can use pubkeyacceptedkeytypes instead of PubkeyAcceptedAlgorithms in /etc/ssh/sshd_config

Back to SSH

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *