在思科路由器上配置SSH登录

用户那里对网络安全性进行检查,要求对核心设备采用SSH登录,之前设备采用telnet登录,用户名和密码明文传输,不符合安全性检查要求。
其实SSH登录配置很简单,主要分以下几步:
1、配置域名
SD_Core_R7600(config)#ip domain-name SDCore
2、生成SSH Key
SD_Core_R7600(config)#crypto key generate rsa
The name for the keys will be: SD_Core_R7600.SDCore
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, keys will be non-exportable...[OK]
说明:key的大小根据情况定义
3、启用aaa new-model
SD_Core_R7600(config)#aaa new-model
4、配置SSH登录时的用户名和密码
SD_Core_R7600(config)#username cisco secret cisc0@123
5、在line上应用SSH登录
SD_Core_R7600(config)#line vty 0 4
SD_Core_R7600(config-line)#transport input ssh
SD_Core_R7600(config-line)#exit
SD_Core_R7600(config)#exit
6、其它可选配置参数
SD_Core_R7600(config)#ip ssh verions 2 设置SSH的版本
SD_Core_R7600(config)#ip ssh time-out 120 设置SSH的超时时间
SD_Core_R7600(config)#ip ssh authentication-retries 3 设置SSH重认证次数

说明:如果还需要进行更进一步的配置,可以参照思科官方文档。

猜你喜欢

转载自blog.51cto.com/05wylz/2311235