NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

top_of_rack_var's avatar
Jan 16, 2023
Solved

M4300 - RSA key lenth too short?

I was provisioning a new M4300-52G today, from a new system with RHEL 9 installed on it.  Part of my provisioning process is to disable telnet and enable ssh.  This has worked fine for years, except ...
  • top_of_rack_var's avatar
    Jan 17, 2023

    I never found a way to generate longer RSA keys on the switch via the CLI, but it may be possible to generate keys on an external system and copy those in.  I will try that some time when I have access to a switch that I can afford downtime on if it does not work.

     

    There is a way to bypass this error from RHEL 9 systems, however.  The tl;dr: workaround is to do:

     

    ssh -o RSAMinSize=1024 admin@switch

     

    This is because RedHat sets this variable, RSAMinSize to 2048 in /etc/crypto-policies/back-ends/openssh.config.  Since this is a configuration option, it can be specified in the command line, in the users ssh_config, or in global /etc/ssh/ssh_config.

     

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More