08-02-2018 01:02 PM
I am working on a ISR4431 that is running Cisco IOS XE Software, Version 16.03.06. For some reason, SSH version 2 will not activate on it.
I get an error message stating that I need to generate keys greater than 768 bytes for SSH version 2 to work. I have generated keys that are 4096 bytes in length. There are definitely keys in the key store, but for some reason they are not used. Am I not generating the correct type of key? What is the command looking for?
# show crypto key mypubkey all
% Key pair was generated at: 23:51:41 EST May 11 2018
Key name: CISCO_IDEVID_SUDI
Key type: RSA KEYS
On Cryptographic Device: act2 (label=act2, key index=24)
Usage: General Purpose Key
Key is not exportable.
Key Data:
<REMOVED>
% Key pair was generated at: 13:54:26 EST Aug 2 2018
Key name: XXXXXXXXXXXXXXXXX.XXXX.org
Key type: RSA KEYS
Storage Device: not specified
Usage: Encryption Key
Key is not exportable. Redundancy enabled.
Key Data:
<REMOVED>
% Key pair was generated at: 13:56:34 EST Aug 2 2018
Key name: XXXXXXXXXXXXXXXXX.XXXX.org.server
Key type: RSA KEYS
Storage Device: not specified
Usage: Encryption Key
Key is not exportable. Redundancy enabled.
Key Data:
<REMOVED>
08-02-2018 01:13 PM
08-02-2018 01:30 PM - edited 08-02-2018 01:33 PM
I tried zeroizing the RSA keys several times. I get the same error. It acts like the keys are not there.
I haven't tried the optional configurations that you posted. Does that just change the hash algorithm?
08-02-2018 01:39 PM
08-02-2018 03:08 PM
cryp key generate rsa general-keys modulus 2048
08-03-2018 12:57 AM
I assume (it's hard to tell with this limited information) that you configured the key with a label, but did not specify that label when configuring SSH. Follow these steps closely and it really should work:
https://community.cisco.com/t5/security-documents/guide-to-better-ssh-security/ta-p/3133344
08-03-2018 06:18 AM
08-03-2018 08:49 AM
This command was introduced in 12.3(4)T, that's really long ago. And yes, it seems that many course designers are not aware of this. Still, I would consider this configuration a best practice.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide