cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
760
Views
0
Helpful
4
Replies

Key size cannot be changed in switch 3850/16.9

Leftz
Level 4
Level 4

Hi After changing key size to 2048 with below two commands, why it is still 1024? Thank you!

crypto key generate rsa modulus 2048

ip ssh dh min size 2048

 

#do sh ip ssh
SSH Enabled - version 2.0
Authentication methods:publickey,keyboard-interactive,password
Authentication Publickey Algorithms:x509v3-ssh-rsa,ssh-rsa
Hostkey Algorithms:x509v3-ssh-rsa,ssh-rsa
Encryption Algorithms:aes256-ctr,aes192-ctr,aes128-ctr
MAC Algorithms:hmac-sha1
KEX Algorithms:diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
Authentication timeout: 60 secs; Authentication retries: 5
Minimum expected Diffie Hellman key size : 2048 bits
IOS Keys in SECSH format(ssh-rsa, base64 encoded): TP-self-signed-506
Modulus Size : 1024 bits

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

Minimum expected Diffie Hellman key size : 2048 bits   - ? what is the issue ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Leftz
Level 4
Level 4

Thanks for your reply. the issue is the two command cannot work. after adding the two commands to change key size, the key size does not change.  

i can see 2048 DH, what i am missing here ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Marvin Rhoads
Hall of Fame
Hall of Fame

When you create a new RSA key (could even be 4096-bits) give it a name and then make sure that key name is bound to the ssh service. Here are a couple of guides for doing so with detailed examples:

https://community.cisco.com/t5/security-knowledge-base/guide-to-better-ssh-security/ta-p/3133344

https://community.cisco.com/t5/networking-knowledge-base/configuring-ios-xe-for-strong-security-ssh-sessions/ta-p/4556490

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card