当前位置:编程学习 > 网站相关 >>

SSH 登录思科路由器RSA modulus too small处理

问题现象:ssh_rsa_verify: RSA modulus too small: 512 < minimum 768 bits

key_verify failed for server_host_key

 
临时解决:
用ssh -v -1 -c des参数连接

test@linux:~$ ssh -v -1 -c des root@10.1.1.1

永久解决方法:

liyi-cisco7200(config)#crypto key zeroize rsa
% All RSA keys will be removed.
% All router certs issued using these keys will also be removed.
Do you really want to remove these keys? [yes/no]: yes

 


cisco7200(config)#crypto key generate rsa general-keys
The name for the keys will be: liyi-cisco7200.liyi.liyi.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 1024 bit RSA keys ...[OK]

 


 

补充:综合编程 , 其他综合 ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,