Your browser does not allow storing cookies. We recommend enabling them.


Configuring Public Key Signature Algorithms

The public key signature algorithms to be used in client authentication can be selected in the sshd2_config file using the AuthPublicKey.Algorithms keyword. The keyword defines the public key signature algorithms that the server will propose and accept to authenticate the user. Using the keyword, it is possible to enable only certain hash functions, such as SHA-2. A message is signed with a hash generated using a signature algorithm and then verified by the receiver using the same signature algorithm. Multiple public key algorithms can be specified as a comma-separated list.


The client defines the order of public key signature algorithms. The client should have at least one algorithm in common with the server configuration. The supported signature algorithms are the following:

Special values for this option are the following:

  • Any: includes all supported signature algorithms.

  • AnyStd: includes the following signature algorithms from the IETF SSH standards: ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, x509v3-ecdsa-sha2-nistp256, x509v3-ecdsa-sha2-nistp384, x509v3-ecdsa-sha2-nistp521, x509v3-sign-dss, x509v3-sign-rsa, ssh-dss, and ssh-rsa.

  • AnyPublicKeyAlgorithm: the same as Any.

  • AnyStdPublicKeyAlgorithm: the same as AnyStd.

The default public key signature algorithms are:


Highlights from the SSH.COM blog:

  • Cryptomining with the SSH protocol: what big enterprises need to know about it

    Cryptomining malware is primarily thought of as targeting desktops and laptops and is used to hijack system resources to mine cryptocurrency.
    Read more
  • SLAM the door shut on traditional privileged access management

    Did you know that something as trivial-sounding as granting access for your developers or third parties to a product development environment can throw a gorilla-sized monkey wrench into your operations and productivity?
    Read more
  • We broke the IT security perimeter

    Everyone understands the concept of a security perimeter. You only gain access if you are identified and authorized to do so.
    Read more