openssh-portable icon indicating copy to clipboard operation
openssh-portable copied to clipboard

Added option RSAMinimumModulusSize <int> to lower the (now) hard limit

Open sinihappo opened this issue 5 years ago • 2 comments

Added option RSAMinimumModulusSize to lower the (now) hard limit SSH_RSA_MINIMUM_MODULUS_SIZE when necessary. Although it is usually possible and extremely advisable to generate new longer server keys, there are older devices where this is not possible. It is, however, practical still use SSH with them even if it is not as secure as it should be. It is still safer to use SSH with 800 bit keys that telnet without any encryption.

Background:

I have struggled with older network gear, where either it is not possible because of the lack of new FW or lack of permit to upgrade. If you think that having this option needs more safeguards, please give ideas on what kind of extra checks or options or anything.

sinihappo avatar May 29 '20 19:05 sinihappo

Thank you, I agree.

How we could get the patch merged to the repository?  As I have stated, there is a need for this.  And I tried to implement it in such a way that it would be used only when needed.

    /alo

mirabilos wrote:

@mirabilos commented on this pull request.


In ssh_config.5 https://github.com/openssh/openssh-portable/pull/188#discussion_r456500555:

@@ -1486,6 +1486,12 @@ an OpenSSH Key Revocation List (KRL) as generated by .Xr ssh-keygen 1 . For more information on KRLs, see the KEY REVOCATION LISTS section in .Xr ssh-keygen 1 . +.It Cm RSAMinimumModulusSize +Specifies the minimum accepted RSA modulus size in different +contexts. This is only be used with older SSH servers when it is +impossible to have or generate longer keys for them. This should not +be used in any other purposes except perhaps testing. There is still +hard limit, 512. To use shorter RSA keys than that, OpenSSH must be recompiled.

|s/hard/a &/|

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/openssh/openssh-portable/pull/188#pullrequestreview-450734807, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA73A6VX6S7T3SVIHWKYMFDR4BSB5ANCNFSM4NOJVYOA.

sinihappo avatar Jul 17 '20 16:07 sinihappo

sinihappo dixit:

How we could get the patch merged to the repository?  As I have stated, there is a need for this.  And I tried to implement it in such a way that it would be used only when needed.

Sorry, not an OpenSSH developer :/

mirabilos avatar Jul 17 '20 17:07 mirabilos

Sorry, we're not interested in enabling support for unsafe crypto. If you need to connect to such devices, then please compile your own ssh with SSH_RSA_MINIMUM_MODULUS_SIZE redefined.

djmdjm avatar Mar 30 '24 06:03 djmdjm