Your browser does not allow this site to store cookies and other data. Some functionality on this site may not work without them. See Privacy Policy for details on how we would use cookies.


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 system will attempt to use the different signature algorithms in the sequence they are specified on the line. 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: allows all the supported signature algorithms

  • AnyStd: allows only the signature algorithms mentioned in the IETF SecSh draft. They are 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: