Hi eveyone, Is there a way to set the minimum size accepted by sshd as an RSA public key? I want to restrict users to using RSA keys that are generated with ssh-keygen -b 2048 or greater. I didn't see any option in sshd_config. There is a ServerKeyBits option, but that seems to apply only for SSHv1. Please help me and provide your response.Thanks in advance. Regards Ravi Pratap
On Wed, 10 Jul 2013, RAVI PRATAP Singh wrote:> Hi eveyone, > > Is there a way to set the minimum size accepted by sshd as an RSA public > key? > > I want to restrict users to using RSA keys that are generated with > ssh-keygen -b 2048 or greater. > > I didn't see any option in sshd_config. There is a ServerKeyBits option, > but that seems to apply only for SSHv1.You can set it at compile time only: ssh.h:#define SSH_RSA_MINIMUM_MODULUS_SIZE 768 -d