SUSE Support

Here When You Need Us

Passwordless SSH login to a remote server with DSA client public key keeps asking user for password

This document (000019837) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server 12


User uses her/his DSA SSH key to login to a remote server that has the user's DSA SSH public key listed as the permitted key (for example, in the user's ~/.ssh/authorized_keys file), but upon login, the user's authentication still fails.

It can be observed in the OpenSSH client session log a similar line:
debug1: Skipping ssh-dss key .ssh/id_dsa - corresponding algo not in PubkeyAcceptedAlgorithms

And on the remote OpenSSH server log it can be observed this similar line:

Dec 21 12:22:26 remotehost sshd[9463]: userauth_pubkey: key type ssh-dss not in PubkeyAcceptedKeyTypes [preauth]


WARNING:  OpenSSH 7.0 and greater disable the ssh-dss (DSA) public key algorithm. It is considered weak and is no longer recommended.  This document will cover how to re-enable it, if needed.  However, the best option is to switch to a different key type.  Strong algorithms such as rsa or ecdsa or ed25519 are preferred.  An rsa key will give you the greatest portability with other implementations of ssh client/server software, while ed25519 will get you the best security while using the OpenSSH implementation.

To re-enable ssh-dss (DSA):

On the remote SSH server using OpenSSH, modify /etc/ssh/sshd_config so 'PubkeyAcceptedKeyTypes' includes 'ssh-dss' to accept DSA keys (see sshd_config(5) man page for details):

It is good to validate the sshd config and check the modified option:

/usr/sbin/sshd -t
An example:

/usr/sbin/sshd -T | grep pubkeyacceptedkeytypes

And restart sshd:

systemctl restart sshd.service

The OpenSSH client might need to modify as well to allow usage of DSA SSH key; either do:

- modify `ssh' command line option to include


- modify either system or user's ssh_config(5) (see the man page for details), to include:



OpenSSH 7.0 and greater disable the ssh-dss (DSA) public key algorithm. It is considered weak and is not recommended to use.

Additional Information



This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000019837
  • Creation Date: 19-Jan-2021
  • Modified Date:21-Dec-2023
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.