ā08-06-2014 06:46 AM - edited ā03-07-2019 08:17 PM
Good morning,
guys please help me.
Output from my router:
SSH enabled - version 1.99
When I connect to this router from my linux by command ssh username@hostname I get
ssh_rsa_verify: RSA modulus too small: 512 < minimum 768 bits
key_verify failed for server_host_key
I've already issued command crypto key generate rsa with modulus 1024bits. But it doesnt help.
Please, some idea?
Thanks!
(I connect with command ssh -1 username@hostname)
ā08-06-2014 07:14 AM
Have you tried not using the -1 since the change? Also when you issued crypto key generate rsa with modulus 1024bits it should have asked you to replace the current key, did you say yes?
ā08-06-2014 08:46 AM
Thanks for your reply.
Yes of course, I answered yes on this question and it doesnt help. I tried it after that without -1 and no change.
Still same output:
ssh_rsa_verify: RSA modulus too small: 512 < minimum 768 bits
key_verify failed for server_host_key
ā08-06-2014 09:59 AM
Is this the procedure you used on the router?
Updated procedure:
C2950T-24#conf t
Enter configuration commands, one per line. End with CNTL/Z.
C2950T-24(config)#aaa new-model
C2950T-24(config)#username myuser password 0 mypass
C2950T-24(config)#line vty 0 4
C2950T-24(config-line)#transport input telnet
C2950T-24(config-line)#transport input ssh
C2950T-24(config-line)#exit
C2950T-24(config)#ip domain-name taosecurity.com
C2950T-24(config)#cry key generate rsa
The name for the keys will be: C2950T-24.taosecurity.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.
How many bits in the modulus [512]: 1024
Generating RSA keys ...
[OK]
01:12:54: %SSH-5-ENABLED: SSH 1.99 has been enabled
C2950T-24(config)#ip ssh time-out 60
C2950T-24(config)#ip ssh authentication-retries 2
C2950T-24(config-line)#end
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